Closed mauriciopasquier closed 6 years ago
solved
Cache it's working but the tiles are not served from it.
Besides, at seeding we hit this bug: https://gis.stackexchange.com/a/264544
Another bug: it seems geowebcache can't read correctly a layer name with dots. This link to 1.2.0 is reported as "Unknown layer GSOC:GSOCmapV1.2"
Done! I had to:
data_dir/cache_dir
)Cache-Control: public, no transform
for every other asset with expiration of 1 day (we can use more but we should discuss it)curl -u "user:password" -H "Content-type: text/xml" -H "Accept: text/xml" -XPOST -i -d "<seedRequest> <name>GSOC:NE2</name> <type>seed</type> <gridSetId>EPSG:4326</gridSetId> <bounds> <coords> <double>-180</double> <double>-90</double> <double>180</double> <double>90</double> </coords> </bounds> <zoomStart>0</zoomStart> <zoomStop>10</zoomStop> <format>image/jpeg</format> <threadCount>02</threadCount> </seedRequest>" "http://localhost:8080/geoserver/gwc/rest/seed/GSOC:NE2.xml"
curl -u "user:password" -H "Content-type: text/xml" -H "Accept: text/xml" -XPOST -i -d "<seedRequest> <name>GSOC:GSOCmapV120</name> <type>seed</type> <gridSetId>EPSG:4326</gridSetId> <bounds> <coords> <double>-180</double> <double>-90</double> <double>180</double> <double>90</double> </coords> </bounds> <zoomStart>0</zoomStart> <zoomStop>10</zoomStop> <format>image/png8</format> <threadCount>02</threadCount> </seedRequest>" "http://localhost:8080/geoserver/gwc/rest/seed/GSOC:GSOCmapV120.xml"
For reference, I created a gridset with tile size based on GSOCmap layer (recommended 512 x 512) so it can use the cache. When trying to add this gridset to defaults, I get this error: