Hm, were you trying to set it to a negative value?

To me it looks like an unsigned integer that rolled over backwards. I tested positive value, before I looked closely at your email, and those appear to work.

Set it to 0 if you don't want it cached, or better, have the client appends &ts=<something random> to every request.

-Arne


On 10/11/10 5:15 PM, Nicolas CASTEL wrote:
Hi, i'm trying to configure cache response headers on a raster layer on geoserver 2.0.2. I didn't see any changes on the header when I perform a request with curl :

* Connected to 10.0.4.24 (10.0.4.24) port 8080 (#0)
> GET /geoserver/wms?HEIGHT=356&WIDTH=512&LAYERS=nurc%3Amosaic&STYLES=&SRS=EPSG%3A4326&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-0.896,31.47059375,28.072,51.61240625&tiled=true HTTP/1.1 > User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/ <http://1.2.3.3> libidn/1.1
> Host:
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: image/jpeg
< Expires: Mon, 11 Oct 2010 15:06:05 GMT
< *Cache-Control: max-age=2147483647, must-revalidate*
< Transfer-Encoding: chunked
< Server: Jetty(6.1.8)

The same configuration works with vector layer (e.g. shapefile layer).

* Connected to 10.0.4.24 (10.0.4.24) port 8080 (#0)
> GET /geoserver/wms?HEIGHT=356&WIDTH=512&LAYERS=sf%3Astreams&STYLES=&SRS=EPSG%3A4326&FORMAT=image%2Fjpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&BBOX=-0.896,31.47059375,28.072,51.61240625&tiled=true HTTP/1.1 > User-Agent: curl/7.18.0 (i486-pc-linux-gnu) libcurl/7.18.0 OpenSSL/0.9.8g zlib/ libidn/1.1
> Host:
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: image/jpeg
< Expires: Mon, 11 Oct 2010 16:13:09 GMT
< *Cache-Control: max-age=3600, must-revalidate*
< Transfer-Encoding: chunked
< Server: Jetty(6.1.8)

Is this a bug?

Regards
Nicolas

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to