A question for the group about the best way to prevent the map page from 
caching.  We may end up adding or removing layers from the map (added via 
QGIS server in the layers.js file) every couple of days.  I have found that 
the layers are cached and new layers don't show up unless I clear the 
browsing data.  Does anyone have suggestions for how to prevent the map 
webpage from ever caching so that new layers will show up with a simple 
refresh?

After some searching I tried adding the following lines to the header for 
the base.html:

<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, no-store, 
must-revalidate"/>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv = "expires" value = "Wed, 22 Dec 2009 12:00:00 GMT" />

These did not seem to help.  Other suggestions I have found online suggest 
adding a randomly created number to the link in the html for the .css and 
.js files which would force the webpage to reload these files.  I am not 
sure exactly where the link is in the html file for these though and if 
that would work.

Any help is appreciated.  Thanks.

Andy

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to