[OpenLayers-Users] Caching of layer source

Gregor at HostGIS gregor at hostgis.com
Sun Mar 15 20:05:00 EDT 2009


Maarten Deen wrote:
> How long does the source of an rss layer get cached?

It's entirely up to your browser. If it's being cached, try using HTTP 
headers or request params to prevent this.

If you're using PHP, you can use header() to effectively disable caching.

If you add a random number to the URL of the RSS, it will also 
effectively disable caching, e.g.:
   url += '&random=' + Math.random();

-- 
HostGIS, Open Source solutions for the global GIS community
Greg Allensworth - SysAdmin, Programmer, GIS Person, Security
Network+   Server+   A+   Security+



More information about the Users mailing list