1
  • I have a layer configuration in Geoserver (space1:my_layer) which I want to change.
  • I change the layer via REST PUT on http://localhost/rest/workspaces/space1/datastores/store1/featuretypes/my_layer
  • Afterwards I do a GET on the same URL and the configuration is changed. Perfect.
  • Then I launch the UI / web of GeoServer and then still my old configuration is shown there. No matter if I (hard) refresh the page, it doesn't update.

Is there a commit needed? or a refresh? is the REST response more right than the web response? Why should I do?

4
  • which part of your layer are you changing? do you have browser caching turned on or off?
    – Ian Turton
    May 19 '20 at 8:29
  • Hi @IanTurton, I update the SQL query of an SQL view by updating the entire set of metadata entries. In the meantime I found out that it just takes sometime to see the changes. Is there a caching involved for the UI part of Geoserver? (browser caching is off by using chrome's debugger). May 19 '20 at 10:59
  • a POST to /rest/reload does the job of updating the UI, but why does the web ui take so long? and not the wfs / rest json May 19 '20 at 15:15
  • there is probably some caching in there to save time - in general you should avoid using the GUI and REST at the same time
    – Ian Turton
    May 19 '20 at 15:17

Your Answer

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

Browse other questions tagged or ask your own question.