How to prevent the browser caching images

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Wed Oct 26 07:26:05 EDT 2005


Hi Frans,

What Chameleon does it add a random parameter to the URL (i.e. image src), eg &dummy=0.78874300+1130325893.

Also, it has a wrapper around the map image called drawmap.php which sets the pragma no cache for the header (so for the image only).

I don't know of any options to do this without such an approach.

Best regards,
Bart

Bart van den Eijnden
Syncera IT Solutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl
>>> Frans Knibbe <frans at GEODAN.NL> 10/26/05 12:49 PM >>>
Hello,

I would like to be able to prevent the browser caching the map images 
produced by MapServer CGI / WMS. Is this possible somehow?
I know it is possible to set "pragma: no-cache" in the HTML headers but 
that is not what I want, only the map image should not be cached.
I also know it is possible to set "pragma: no-cache" in the image 
header, this would seem a better idea. Is this possible to achieve?

Regards,

Frans



More information about the mapserver-users mailing list