Hi,

I think I have now worked out that the option needed is on the publishing tab 
which has Caching Settings at the top of the page with a response cache headers 
option. If I set the value in there then the response headers appear but I'm 
still a little confused as to why we have a check box?

Surely we should just include the header if we have a value in the Cache Time 
(seconds) box?

As stated below, it appears that the Expire client cache after n seconds on the 
Tile Caching page is not effecting the response headers at all so it is a bit 
of a mystery to me what it is meant to do?

I still have a bit of a problem as I'm really trying to set the option for a 
layergroup and of course that doesn't have the Caching Setttings option on the 
publishing tab. I have set the relevant options on the Tile Caching tab but as 
far as I can see there is no way to alter the cache expiration response header 
on a layergroup using the UI. Did I miss another option somewhere or does that 
sound correct to you?

I might try to set the response cache headers option to true in the XML and see 
if it works anyway.

Thanks,
Paul

From: Paul Wittle
Sent: 24 November 2017 15:43
To: 'geoserver-users@lists.sourceforge.net' 
<geoserver-users@lists.sourceforge.net>
Subject: Question about default tile expiration

Hi,

This is hopefully an easy question. On the tile settings tab for a layer there 
are two options for tile expiration (server and client). In brackets it states 
that setting these to 0 will default to the system default but where is the 
setting for the default?

I looked under Caching Defaults in 2.12.0 but I can't see an option and adding 
it to the GWC config file as <expireClients> results in an error as well.

I have tried setting the values for a particular layer to 600 but I still get a 
header of Cache-Control: no-cache so we wanted to check what the default was 
set to.

I'm sure I'm missing something obvious but I thought I would ask anyway; any 
tips would be great?

Thanks,
Paul
"This e-mail is intended for the named addressee(s) only and may contain 
information about individuals or other sensitive information and should be 
handled accordingly. Unless you are the named addressee (or authorised to 
receive it for the addressee) you may not copy or use it, or disclose it to 
anyone else. If you have received this email in error, kindly disregard the 
content of the message and notify the sender immediately. Please be aware that 
all email may be subject to recording and/or monitoring in accordance with 
relevant legislation."
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to