Image Cache
Grzegorz Myrda
mapadm at polsl.gliwice.pl
Fri Nov 5 00:32:59 PST 1999
You need to replace all references to map images with for example:
sprintf(substr, "%s/%s%d%ld.gif", imgpath, Map->name, UserID,uniqueNumber);
where:
uniqueNumber = time(NULL);
I use it for a long time and it works.
--
Grzegorz
-----Original Message-----
From: KIERAN AMES <kames at keyspanenergy.com>
To: mapserver-users at lists.gis.umn.edu <mapserver-users at lists.gis.umn.edu>
Date: 4 listopada 1999 20:09
Subject: Image Cache
>I've installed a port of Mapserv onto a NT4.0 machine and am now
>experimenting. I've run across an implementation problem with regard to
>images being cached.
>
>I believe that image names are created with the map name concatenated to
>the processID. In NT, process IDs don't run very high and are re-used.
>Therefore, when a new image is created, the client browser sees an image
>name and if it finds it in its local cache, it doesn't fetch the revised
>image that was just created.
>
>I can control this in regular cgi (Perl) by sending non-parsed headers
>and delivering a "Pragma:No-cache" line in the http headers. Is there an
>equivalent solution with MapServ on an NT platform?
>
>Thanks very much.
>Kieran Ames
>
>PS. I'm new to MapServ, but I think its GREAT!
>
>
More information about the MapServer-users
mailing list