Hi Todd,
Yes, I could imagine this being a reasonable feature to surface in the
UI. (That said, I'm not the gatekeeper for reasonable, so this is just
one opinion.)
In terms of ease, I'd agree that a checkbox would be great; that said,
you can set this variable in a number of ways which doesn't require a
code change to GeoServer. For instance, you could run the Tomcat JVM
with -DCAPABILITIES_CACHE_CONTROL_ENABLED=false.
Cheers,
Jim
On 10/17/19 11:34 AM, Todd Jacobus wrote:
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
<mailto: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
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
<mailto: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
<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
--
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