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-tp2632363p2632807.html
Sent from the Mapserver - User mailing list archive at Nabble.com.

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to