Is there a way to change geoserver gwc-gs.xml through a rest interface? I want to be able to set cacheLayersByDefault to false.

  • 1
    So why not just edit it by hand? – lynxlynxlynx Dec 18 '17 at 9:40
  • 1
    There are a lot of scenarios where you may not be able do it by hand. I think this is a legitimate and clear question, I don't understand the close-votes. – pLumo Dec 18 '17 at 10:35
  • The Docs does not provide any information. If here know one knows, maybe the GeoServer Mailing List is the better place to ask. – pLumo Dec 18 '17 at 10:42
  • I am using Ansible to provision the geoserver setup and I use the geoserver rest services for contact config, and setup of workspaces, stores and layers, i.e. I want to be independent of the web interface. I can solve this by replacing the gwc-gs.xml file with the one with the desired settings, but before doing that I wondered if there was a rest interface for common gwc config I could use instead. – Lena Seternes Dec 18 '17 at 11:26

I don't believe this is possible, the GeoWebCache Rest API is used to control the cache rather than the GeoServer Rest API which is used to control the configuration of the server.

If this is important to your work you could sponsor the improvement.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.