|
From: Jim H. <jh...@cc...> - 2019-10-17 16:29:41
|
Hi Todd, Sure, I found a Stack Overflow here (https://stackoverflow.com/questions/9520987/tomcat-7-where-do-i-set-system-properties/16566920#16566920) which seems to cover it. Looks like you set up a setenv.sh for instance to set this in JAVA_OPTS. Cheers, Jim On 10/17/19 12:17 PM, Todd Jacobus wrote: > Hi Jim, > > Ok, I think I might have misunderstood you a little. Apologies. > Certainly, setting an environment variable and restarting the server > would be easy enough for my capabilities. However, I'm quite noobish > when it comes to Java. Do you know of any good resources off hand > that might illustrate how to do this? Also, from reading the > commenting from the github link you passed along, it seems as though I > can set this variable as a Linux system variable. Thanks again. > > Best, > Todd > > On Thu, Oct 17, 2019 at 10:05 AM Jim Hughes <jh...@cc... > <mailto:jh...@cc...>> wrote: > > 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 <jh...@cc... >> <mailto:jh...@cc...>> 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:tj...@tc... <mailto:tj...@tc...> >>> >>> 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 >>> >>> >>> Geo...@li... <mailto:Geo...@li...> >>> 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 >> >> >> Geo...@li... >> <mailto:Geo...@li...> >> https://lists.sourceforge.net/lists/listinfo/geoserver-users >> >> >> >> -- >> >> >> Todd Jacobus >> >> GIS Developer >> >> TCARTA_ Logo.jpg >> >> Office:+1 (303) 284 6144 >> >> Mob:+1 >> >> Email:tj...@tc... <mailto:tj...@tc...> >> >> 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. > > > > > -- > > > Todd Jacobus > > GIS Developer > > TCARTA_ Logo.jpg > > Office:+1 (303) 284 6144 > > Mob:+1 > > Email:tj...@tc... <mailto:tj...@tc...> > > 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. |