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
TCARTA_ Logo.jpg
Office:+1 (303) 284 6144
Mob:+1
Email:t...@tcarta.com <mailto: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
_______________________________________________
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