[mapserver-users] cgi output is not cached on client??? please help!
BrainDrain
paulborodaev at gmail.com
Tue Apr 14 06:13:45 PDT 2009
It seems (visually, but I'm not sure) that response.Redirect(url, false) helps
I dont know why
I've added
"http_max_age" "1209600" #2 weeks in seconds
in map file web section to enable cahing
it works when I use pure cgi, but doesn't work when i'm redirecting to cgi from my http handler
this is strange for me...
Why mapserver cgi output is not cached on client?
If image has the SAME url it will be re-requested every time when I start a new instance of webapp.
When I'm using my own httphandler (with map.draw() inside or webClient.DownloadData(url_to_mapservcgi))
I'm turning on caching with:
response.StatusCode = 200;
response.Cache.VaryByParams["*"] = true;
response.Cache.SetExpires(DateTime.Now.AddDays(14));
response.Cache.SetCacheability(HttpCacheability.Private);
and it works as expected
but pure cgi requests are not cached ON CLIENT - how it can be possible?
--
View this message in context: http://n2.nabble.com/cgi-output-is-not-cached-on-client----please-help%21-tp2632363p2633002.html
Sent from the Mapserver - User mailing list archive at Nabble.com.
More information about the MapServer-users
mailing list