Ok, I understood that I need to set the cache-time for all the layers in my 
layer group in order to get that header.

But: How to set it via REST API? Is that possible? What needs to be done to 
make it possible?

Regards,
Sebastian

Von: andrea.a...@gmail.com [mailto:andrea.a...@gmail.com] Im Auftrag von Andrea 
Aime
Gesendet: Freitag, 19. Oktober 2012 20:31
An: Schmidt.Sebastian S-IP-AN-TG
Cc: geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] REST config: Http Caching Headers

2012/10/19 <schmidt.sebasti...@swm.de<mailto:schmidt.sebasti...@swm.de>>
Hello everyone,

I'm looking for a way to configure cache-control headers sent out by geoserver 
for group layers:

What I found out:
If I set the "Answer with Cache header" for all layers in that group layer, 
geoserver will respond to group Layer request with the corresponding Headers as 
well:

Cache-Control:max-age=3600, must-revalidate
Expires:Fr, 19 Okt 2012 07:52:11 GMT

What I'd like to know:
Is there a way to set the checkbox "Awnser with cache headers" and the time in 
Seconds (max-Age) from the Rest Config via XML or JSON?

Layer groups service wide "do not exist", in that the are split into their 
composing layers the moment
the request is parsed and any notion of the group is lost.

So the request is the same as making a request with the list of layers.
When multiple layers are requested, the http header of the response is setup to 
be the lowest
of all the layers requested, so for layer groups it's the lowest cache time of 
all the layers making it up.

Cheers
Andrea


--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more 
information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39  339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to