[Geoserver-devel] [jira] Created: (GEOS-2024) Caching headers issues

Caching headers issues
----------------------

                 Key: GEOS-2024
                 URL: http://jira.codehaus.org/browse/GEOS-2024
             Project: GeoServer
          Issue Type: Bug
          Components: WMS
    Affects Versions: 1.7.0-beta1
            Reporter: Andrea Aime
            Assignee: Andrea Aime
             Fix For: 1.6.5, 1.7.0-beta2

Enabling caching for topp:states with an cache time of 1000 results in the following header set:

curl -I "http://localhost:8080/geoserver/wms?SRS=EPSG%3A4326&WIDTH=800&STYLES=&HEIGHT=317&LAYERS=topp%3Astates&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-145.48948729687498,17.49445597548828,-46.211783703124986,56.83324602451172"
HTTP/1.1 200 OK
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=194q98cv8mgap;Path=/geoserver
Content-Type: application/xml
Content-Length: 501
Server: Jetty(6.1.8)

The expires field is wrong, the max-age in this case is missing (the user reported it being there, so maybe this is an extra problem in 1.7.x)

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira