[Geoserver-devel] Last-Modified header on GWC requests seem to be wrong

Re-posting to dev list. I’ll create a ticket if nobody has any ideas.

I noticed an issue with my tiled maps where it seems the cache is very little used.

I am using GeoServer 2.10.0 with Jetty 9.3. I am using the built-in Guava memory cache. It seems that the Last-Modified timestamp in response headers is only set based on what’s in the memory cache. If I clear the memory cache or disable it, then I see the Last-Modified timestamps set to the same as the Date timestamp, effectively saying that this tile is brand new. However the regular GWC disk cache is definitely still there. Shouldn’t the Last-Modified be set to the modified time of the file on disk?

···

Jason Newmoyer
Newmoyer Geospatial Solutions
843.606.0424
jason@anonymised.com