Hi Shadin,
If it is a layergroup then all layers within the group need to have that
enabled and a value set, otherwise there are no headers set.
This layer for example has a cache set for a month:
http://maps.warwickshire.gov.uk/gs/ows?LAYERS=Public_Data_DB%3AOS_BD_COUNTY_WSHIRE&TRANSPARENT=TRUE&FORMAT=image%2Fpng&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&SRS=EPSG%3A27700&BBOX=355450,207000,504550,333000&WIDTH=852&HEIGHT=720
If you look at the headers you'll see:
> *Cache-Control*max-age=2592000, must-revalidateContent-Disposition inline;
> filename=Public_Data_DB-OS_BD_COUNTY_WSHIRE.pngContent-Length15597
> Content-Typeimage/pngDateThu, 01 May 2014 08:09:36 GMT *Expires*Sat, 31
> May 2014 08:09:36 GMTServer
> Microsoft-IIS/7.5Set-CookieGS_FLOW_CONTROL="GS_CFLOW_-7b4803d0:145b6296c7c:-7540";
> Version=1 X-Powered-ByASP.NET
I think I may have had to set something on my web-server too (which is
acting as a reverse proxy between geoserver and the world) but it has been
a while.
Cheers,
Jonathan
On 30 April 2014 20:28, Shadin <[email protected]> wrote:
> Hi Jonathan,
>
> Thanks for this tip! yes I thought it would be massive bit didn't know
> there
> is another option.
> So I just simply sit the timeout to 2 hrs and serve the layers using WMS as
> usual? because i did that turning on 'Response Cache Headers' and look at
> the HTTP response header on the client I see no difference from the case
> when the 'Response Cache Headers' is not on.
>
> How can i tell if it's working?
> Thanks a lot!
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Terminate-GeoWebCache-REST-API-Request-tp5137944p5138059.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos. Get
> unparalleled scalability from the best Selenium testing platform available.
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
--
This transmission is intended for the named addressee(s) only and may
contain confidential, sensitive or personal information and should be
handled accordingly. Unless you are the named addressee (or authorised to
receive it for the addressee) you may not copy or use it, or disclose it to
anyone else. If you have received this transmission in error please notify
the sender immediately. All email traffic sent to or from us, including
without limitation all GCSX traffic, may be subject to recording and/or
monitoring in accordance with relevant legislation.
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos. Get
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users