Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Enable Response Cache Headers when creating a new layer #208

Open
nilgundag opened this issue Mar 6, 2017 · 1 comment
Open

Comments

@nilgundag
Copy link

With Geoserver Layer Publishing UI, we are able to

  • check "Response Cache Headers"
  • specify "Cache Time (seconds)"

I wonder if this is possible when we are publishing a new layer via geoserver-manager?

@asfixia
Copy link

asfixia commented Apr 22, 2020

This action is possible by REST API.

Request example:
PUT

/geoserver/rest/workspaces/<ws>/datastores/<ds>/featuretypes/<ft>.xml

application/xml content:

<metadata>
<entry key="cacheAgeMax">1800</entry>
<entry key="cachingEnabled">true</entry>
</metadata>

From: http://osgeo-org.1560.x6.nabble.com/REST-config-Http-Caching-Headers-td5009774.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants