Tuesday 26 September 2017

Disabling caching in geowebcache.xml using GeoServer?


I need to publish a geometry table (in PostGIS) as a layer of vector tiles (in PBF format) in GeoServer. As the table is dynamically written by a production web app, i need to set the layer's caching as disable. I got a hint that this could be done by editing the geowebcache.xml, specifically with and tags, using the special value -1 (that means no-cache).


What i can not find anywhere is a a real example of configuring this in the geowebcache.xml. The following is my default file (of GeoServer 2.13.2 on Apache Tomcat 8.5):




xmlns="http://geowebcache.org/schema/1.8.0"
xsi:schemaLocation="http://geowebcache.org/schema/1.8.0 http://geowebcache.org/schema/1.8.0/geowebcache.xsd">
1.8.0
120













Do i:




  1. simply put the and out of comment?




  2. Or do i need to make a whole block for that specific layer (from , , , , all the way down to ), that specifies and ?







No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...