[ka-Map-users] Caching timeout explanation

Paul Spencer pspencer at dmsolutions.ca
Mon Jun 6 12:27:05 EDT 2005


Hi Derek,

comments inline

Munro, Derek wrote:
>  
> Hi Paul:
>  
> Two questions:
>  
> 1. Could you explain the time out feature in caching? This appears to be 
> in tile.php:
>  
> header("Expires: " . date( "D, d M Y H:i:s GMT", time() + 31536000 ));
> header("Cache-Control: max-age=31536000, must-revalidate" );
>  
> I assume that this is the number of seconds before a given tile will 
> time out from the data stamp?
>  
> What I want is to capture a series of tiles once that will not expire. 
> How do I do that (simply rem out these two lines)?

these headers (should) instruct the browser to cache the tiles in the 
browser's local cache for 1 year.  I'm not sure if you can ask it to 
never expire from the cache.

>  
> 2. Is there any work being done on a *query current mouse position* so 
> that the current latitude and longitude would appear on the browser 
> page, for example, after a double mouse click?

I will contact you offline about this.

>  
> Thanks,
>  
> Derek Munro
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> ka-Map-users mailing list
> ka-Map-users at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/ka-map-users

-- 
+-----------------------------------------------------------------+
|Paul Spencer                           pspencer at dmsolutions.ca   |
+-----------------------------------------------------------------+
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
+-----------------------------------------------------------------+


More information about the ka-Map-users mailing list