AW: [OpenLayers-Users] How to force the latest javascript script intoan openlayers application?

Puneet Kishor punk.kish at gmail.com
Wed Dec 7 08:29:36 EST 2011



On Dec 7, 2011, at 7:21 AM, "Morper-Busch, Lucia" <Lucia.Morper-Busch at sbg.ac.at> wrote:

> add in the head of the html page:
> <meta http-equiv="cache-control" content="no-cache">
>  
> ..

That will disable all caching.

..
> e.g. <script type="text/javascript" src="app.js?1"></script> and when I change something just change ?1 to ?2. But this still deosnt´ensure that the newest script will be loaded.
>  


Sure it will. What makes you say it won't? Adding a different query string makes it a different URI, so the browser will fetch the entire thing again instead of using its cache.

--
Puneet Kishor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111207/215c5968/attachment.html


More information about the Users mailing list