I have been working with GeoWebCache on a out of the box build GeoServer 2.17.0.
I have set "Enable direct integration with GeoServer WMS" in the Caching Defaults.
When I call GeoWebCache directly (http://localhost:8080/geoserver/nurc/gwc/service/wms?service=WMS&version=1.1.0&request=GetMap&layers=nurc:Arc_Sample&bbox=-180.0,-90.0,180.0,90.0&width=768&height=384&srs=EPSG:4326&format=image/jpeg)
I get the following error:
400: Requested horizontal resolution: 1.40625 , best match: 0.703125 exceeds 10% threshold. Perhaps the client is configured with an incorrect set of scales (resolutions),or the DPI setting is off compared to the one in GWC ?
The 0.703125 number is the resolution for the EPSG:4326 srs which is pre-defined and set in stone AFAICT. I am not sure where the 1.40625 number comes from, I assume it is calculated based on the request.
When I make a normal WMS request (http://localhost:8080/geoserver/nurc/wms?service=WMS&version=1.1.0&TILED=true&request=GetMap&width=360&height=180&layers=nurc:Arc_Sample&bbox=-180.0,-90.0,180.0,90.0&srs=EPSG:4326&format=image/jpeg) I get the following in the Return headers:
geowebcache-cache-result: MISS geowebcache-miss-reason: request does not align to grid(s) 'EPSG:4326'
I have tried a few different requests but the result is always the same.
I have seeded the first 4 zoom levels for the layer
Set 'Compute from SRS bounds' for the layer's bounding box settings and dropped and recreated the layer and the cache layer
Alas none of it has changed anything.
Do you have any insight or ideas?