AW: [OpenLayers-Users] How to force the latest javascript script
intoan openlayers application?
Morper-Busch, Lucia
Lucia.Morper-Busch at sbg.ac.at
Wed Dec 7 08:21:38 EST 2011
add in the head of the html page:
<meta http-equiv="cache-control" content="no-cache">
Lucia
Dipl.-Geogr. Lucia Morper-Busch | Researcher
University of Salzburg | Centre for Geoinformatics - Z_GIS
Schillerstr.30 | Techno-Z, Block 15, 3rd floor, Room 320 | 5020 Salzburg, Austria
Phone +43 (0)662 8044 5298 | Fax +43 (0)662 8044 5260
> Z_GIS...experts for the spatial view <http://www.zgis.at/research>
Von: openlayers-users-bounces at lists.osgeo.org [mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Robert Buckley
Gesendet: Mittwoch, 07. Dezember 2011 11:53
An: users at openlayers.org
Betreff: [OpenLayers-Users] How to force the latest javascript script intoan openlayers application?
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/ead69fd0/attachment-0001.html
More information about the Users
mailing list