[OpenLayers-Users] How to force the latest javascript script into
an openlayers application?
Robert Buckley
robertdbuckley at yahoo.com
Wed Dec 7 05:53:05 EST 2011
Hi,
Just a
javascript question for openlayers gurus.
I often
have to make small changes in my javscript scripts..e.g adding a layer/
changing a layer´s name etc.
If the user
does not clear the browser cache before loading the application, the cached
version will always be loaded. I got a tip which entailed writing ?1 to the end
of the javascript script in the html page..
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.
Does anyone
have another better way to force the clients browser to always load the newest
uncached version?
thanks,
Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111207/9bda002b/attachment.html
More information about the Users
mailing list