GWC ignores the layer http caching settings
-------------------------------------------

                 Key: GEOS-4760
                 URL: https://jira.codehaus.org/browse/GEOS-4760
             Project: GeoServer
          Issue Type: Bug
          Components: GWC
            Reporter: Andrea Aime
            Assignee: Gabriel Roldán


A layer can be configured with a max-age http caching header.
GeoServer WMS honors it, but the embedded GWC does not:

http://demo1.geo-solutions.it/playground/gwc/service/wms?LAYERS=GeoSolutions%3Aworld.200405&STYLES=&FORMAT=image%2Fjpeg&TILED=false&TILESORIGIN=-180%2C-90&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=0,-90,180,90&WIDTH=256&HEIGHT=256

results in:

{panel}
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2011 10:17:06 GMT
Server: Apache
Set-Cookie: GS_FLOW_CONTROL="GS_CFLOW_37ae75f:1324d8693ff:-7ea7"; Version=1
Expires: Mon, 12 Sep 2011 10:17:06 GMT
Cache-Control: max-age=259200, must-revalidate
Content-Disposition: inline; filename=GeoSolutions-world.200405.jpg
Connection: close
Transfer-Encoding: chunked
Content-Type: image/jpeg
{panel}

while the 

http://demo1.geo-solutions.it/playground/gwc/service/wms?LAYERS=GeoSolutions%3Aworld.200405&STYLES=&FORMAT=image%2Fjpeg&TILED=false&TILESORIGIN=-180%2C-90&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&EXCEPTIONS=application%2Fvnd.ogc.se_inimage&SRS=EPSG%3A4326&BBOX=0,-90,180,90&WIDTH=256&HEIGHT=256

results in:

{panel}
HTTP/1.1 200 OK
Date: Fri, 09 Sep 2011 10:13:59 GMT
Server: Apache
geowebcache-tile-index: [1, 0, 0]
Content-Length: 10036
Connection: close
Content-Type: image/jpeg
{panel}

(Direct integration is disabled on that server as it's not working properly, 
the build is less than a month old, trunk)

I also see that the direct integration seems to set a etag as an alternative 
mean of preventing reloads, but that does not appear to be used by the direct 
GWC link.
In any case, a max-age header prevents the request at all, instead of replacing 
it with a quicker one, so imho GWC should try to respect the max-age header if 
set

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to