[ka-Map-users] SOLVED: IE6 Caching Issue

Jason Fournier jfournier at dmsolutions.ca
Fri Jul 20 18:39:17 EDT 2007


Hi Daniel,

Thanks for sharing your solution with us.  Very nice application, btw!

Best regards,
Jason



-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of
Daniel.Huber at ch2m.com
Sent: Friday, July 20, 2007 6:06 PM
To: ka-Map-users at lists.maptools.org
Subject: [ka-Map-users] SOLVED: IE6 Caching Issue

SOLVED the Internet Explorer dynamic data caching issue I was having.

Changing the tile "header" information set in the "tile_nocache.php"
routine fixed it.  The initial settings were:

header("Expires: " . date("D, d M Y H:i:s GMT", time() + 31536000));  
header("Cache-Control: max-age=31536000, must-revalidate"); 

Which meant the image tiles would expire in about 1 year!

The headers now read:

header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");  
header("Cache-Control: no-cache, no-store, must-revalidate");

Which means the tiles should never be cached and will always be expired.



-----Original Message-----
From: ka-map-users-bounces at lists.maptools.org
[mailto:ka-map-users-bounces at lists.maptools.org] On Behalf Of
Daniel.Huber at ch2m.com
Sent: Tuesday, July 17, 2007 2:10 PM
To: ka-Map-users at lists.maptools.org
Subject: [ka-Map-users] IE6 Caching Issue

I'm having an issue w/ IE6 page caching and I'm hoping you may be able
to help.  
 
Quick background:  We've developed an application using the MS4W ka-Map
example that displays both static data layers (watershed info as well as
country level data) and dynamic data (user facility locations/type).
The dynamic data is passed to the server from a client side Excel
spreadsheet and is referenced in the map file with these metadata tags
so they are not cached on the server: 

 METADATA
   "tile_source" "nocache"
   "redraw_interval" "10"
 END
 
You can view the static application at
http://www.mapriders.com/mapserver/ 
 
Issue:  We cannot get IE6 to accept any meta tags or header commands to
not cache the dynamic map data.  Using the following tags below, Firefox
works just fine but IE6 only shows the first mapfile you load and will
only show new maps if you've manually cleared your cache.
 
<META Http-Equiv="Cache-Control" Content="no-cache"> <META
Http-Equiv="Pragma" Content="no-cache"> <META Http-Equiv="Expires"
Content="-1">

 
You can witness this issue by browsing the following pages in IE6:
 
http://www.mapriders.com/mapserver/index.phtml?mapFile=3zt1eswzrdqlkumps
s9n.map 
 
http://www.mapriders.com/mapserver/index.phtml?mapFile=03fc7p5j7457h1cuv
tan.map 
 
http://www.mapriders.com/mapserver/index.phtml?mapFile=ru0tttqkdgr6fe4ug
pxj.map 
 
If you open the same pages in Firefox, you will see that the number of
facilities is different.
 
 
So, do any of you have any suggestions on how we can force IE6 to always
reload the page and not use cached pages?  We will be rolling this
application out to the client soon and would like to get this issue
cleared up.  It would be a real pain if we had to either force the users
of this system to only use Firefox, or have them manually clear their
cache each time they generate a new map.
 
Thank you for your time, and your help with this would be greatly
appreciated!

Daniel Huber
CH2MHILL Colorado Springs

_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users

_______________________________________________
ka-Map-users mailing list
ka-Map-users at lists.maptools.org
http://lists.maptools.org/mailman/listinfo/ka-map-users



More information about the ka-Map-users mailing list