Hi Jim,

Thanks very much for looking into this.  I was hoping there might be an
easier configuration option, but it's good to know that this might easily
be changed in the source code.  Do you think it would be worth suggesting
this as a feature, for example, a check box that would allow GeoServer to
use the configured settings for the host server?  It would certainly be
handy in this instance.

Best,
Todd

On Wed, Oct 16, 2019 at 2:54 PM Jim Hughes <jhug...@ccri.com> wrote:

>
> Hi Todd,
>
> Good question.  I grepped through the source code and found this
> class[1].  I haven't tried it myself in production, but I tried it in the
> unit test framework.  It looks like setting
> CAPABILITIES_CACHE_CONTROL_ENABLED to "false" will let you have control
> over the headers.
>
> Cheers,
>
> Jim
>
> 1.
> https://github.com/geoserver/geoserver/blob/2.15.2/src/main/src/main/java/org/geoserver/config/CapabilitiesCacheHeadersCallback.java#L22-L30
>
>
> On 10/16/19 2:13 PM, Todd Jacobus wrote:
>
> Hi all,
>
> I have a client that is using a one-time GetCapabilities request to
> establish authentication to our server.  However, it seems that GeoServer
> returns "Cache-Control: max-age=0, must-revalidate" which overrides what I
> have configured for Tomcat.  This header is preventing them from caching
> authentication data, at least for how they are implementing it.
>
> Is it possible to configure GeoServer to return a "max-age" value greater
> than 0 from a GetCapabilities request?
>
> Here are my specs:
> Geoserver version:  2.15.2
> Server version: Apache Tomcat/8.5.43
>
> Thank you in advance.
>
> 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.nethttps://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
> _______________________________________________
> 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