Hey folks,
I'm using geoserver 1.4M0 and am having some trouble getting
geoserver's caching headers to work. The featureType has
<cacheinfo enabled = "true" maxage = "86400" />
and this is reflected in the admin interface. But still, there are no
"Cache-Control: max-age" headers sent. Here's the header info
according to Live HTTP Headers:
HTTP/1.x 200 OK
Date: Thu, 12 Oct 2006 20:52:12 GMT
Server: Apache/2.0.55 (Ubuntu) mod_jk/1.2.14 PHP/5.1.2
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: image/gif
No cache control 
Any ideas? Was this something that was fixed in a recent Milestone?
--
Matthew T. Perry
GIS Analyst / Software Engineer
National Center for Ecological Analysis and Synthesis (NCEAS)
work: perry@anonymised.com
web: http://www.perrygeo.net
I think it may be something fixed, M0 was a pretty experimental release. I'd wait for the next release if I were you, it has some other good bug fixes. I know for sure the caching stuff works in 1.3.4. M0 was branched before that release, so it may have missed out on a fix. By M2 we got most all the fixes over.
Also be sure that _all_ featureTypes being requested have the maxage set - if one doesn't have it set than the whole image will default to that.
In case you haven't found it, also note that we've got instructions and a download to set up OSCache, which should handle all the caching after you've got the headers right. See: http://docs.codehaus.org/display/GEOSDOC/Caching
best regards,
Chris
Matthew Perry wrote:
Hey folks,
I'm using geoserver 1.4M0 and am having some trouble getting
geoserver's caching headers to work. The featureType has
<cacheinfo enabled = "true" maxage = "86400" />
and this is reflected in the admin interface. But still, there are no
"Cache-Control: max-age" headers sent. Here's the header info
according to Live HTTP Headers:
HTTP/1.x 200 OK
Date: Thu, 12 Oct 2006 20:52:12 GMT
Server: Apache/2.0.55 (Ubuntu) mod_jk/1.2.14 PHP/5.1.2
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: image/gif
No cache control 
Any ideas? Was this something that was fixed in a recent Milestone?
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org