Hi Jody,

Thanks for your quick response.  I see this now and successfully got the
Cache-Control header to be set properly for a GetMap request for the layer
I requested, so thank you for your suggestion.  However, is there any way
to configure the Cache-Control response for GetCapabilities requests?  We
have a client who is requesting this functionality, but at this point, it
doesn't seem possible.  Thanks again.

Best,
Todd

On Tue, Oct 15, 2019 at 11:39 PM Jody Garnett <jody.garn...@gmail.com>
wrote:

> It is a per layer setting, see Response Cache Headers
> <https://docs.geoserver.org/stable/en/user/data/webadmin/layers.html>
> --
> Jody Garnett
>
>
> On Tue, 15 Oct 2019 at 16:30, Todd Jacobus <t...@tcarta.com> wrote:
>
>> Hi all,
>>
>> I'm seeing confusing responses from our server.  I configured Tomcat to
>> allow resources to persist for 12 hours as per the below filter:
>>
>> <filter>
>>  <filter-name>ExpiresFilter</filter-name>
>>  <filter-class>org.apache.catalina.filters.ExpiresFilter</filter-class>
>>  <init-param>
>>   <param-name>ExpiresDefault</param-name>
>>   <param-value>access plus 1 month</param-value>
>>  </init-param>
>> </filter>
>> <filter-mapping>
>>  <filter-name>ExpiresFilter</filter-name>
>>  <url-pattern>/*</url-pattern>
>>  <dispatcher>REQUEST</dispatcher>
>> </filter-mapping>
>>
>> When using the OPTIONS HTTP method to make a GetCapbabilities request, I
>> see the expected response header value for
>> Cache-Control:  max-age=2682000.  However, when I send a GetCapabilities
>> request using the GET method, I see a value of "max-age=0, must-revalidate"
>> for Cache-Control.
>>
>> Does GeoServer force the value for Cache-Control and, if so, is this
>> configurable?
>>
>> Here are my specs:
>> Geoserver version:  2.15.2
>> Server version: Apache Tomcat/8.5.43
>>
>> Thanks everyone.
>>
>> Best,
>> Todd
>>
>> --
>> Todd Jacobus
>>
>> GIS Developer
>>
>>
>>
>> [image: TCARTA_ Logo.jpg]
>>
>> Office: +1 (303) 284 6144
>>
>> Mob: +1
>>
>> Email: t...@tcarta.com
>>
>> Address: 3015 W 9th Ave, Denver, CO 80204, USA
>>
>> WWW.TCARTA.COM   <http://www.tcarta.com/>| TWITTER
>> <http://www.twitter.com/tcarta_Marine> | LINKED IN
>> <https://www.linkedin.com/company/2385157?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2385157%2Cidx%3A2-1-2%2CtarId%3A1486997780192%2Ctas%3Atcarta%20ma>|
>>
>> CONFIDENTIALITY: This message may contain privileged and confidential
>> information intended only for the use of the addressee. If you are not the
>> intended recipient of this message you are hereby notified that any use,
>> dissemination, distribution or reproduction of this message is prohibited.
>> If you have received this message in error please notify TCarta
>>  immediately. Any views expressed in this message are those of the
>> individual sender and may not necessarily reflect the views of the Company
>> . Please consider the environment before printing this e-mail.
>> _______________________________________________
>> 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
>>
>> If you want to request a feature or an improvement, also see this:
>> https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer
>>
>>
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>

-- 
Todd Jacobus

GIS Developer



[image: TCARTA_ Logo.jpg]

Office: +1 (303) 284 6144

Mob: +1

Email: t...@tcarta.com

Address: 3015 W 9th Ave, Denver, CO 80204, USA

WWW.TCARTA.COM   <http://www.tcarta.com/>| TWITTER
<http://www.twitter.com/tcarta_Marine> | LINKED IN
<https://www.linkedin.com/company/2385157?trk=tyah&trkInfo=clickedVertical%3Acompany%2CclickedEntityId%3A2385157%2Cidx%3A2-1-2%2CtarId%3A1486997780192%2Ctas%3Atcarta%20ma>|

CONFIDENTIALITY: This message may contain privileged and confidential
information intended only for the use of the addressee. If you are not the
intended recipient of this message you are hereby notified that any use,
dissemination, distribution or reproduction of this message is prohibited.
If you have received this message in error please notify TCarta
 immediately. Any views expressed in this message are those of the
individual sender and may not necessarily reflect the views of the
Company. Please
consider the environment before printing this e-mail.
_______________________________________________
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

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


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

Reply via email to