Atlaslog
Atlaslog / Field Notes / Services & tile access
Field note · Services & tile access

Data updated but tiles still show last week

Quick answer

GetMap returns the new roads while WMTS serves the old image, sometimes with a visible seam between new and old tiles at one zoom level. Tiles are keyed on layer, style, grid set, level, row and column, so changing only the data invalidates nothing.

Last verified 2026-11-03 · Multiple versions · Cite this page
Applies to: GeoServer 2.25 · GeoWebCache 1.25
Symptom
Checklist
  1. Request the same tile with a random query parameter and diff the two images to bypass the cache.
  2. Read Age and X-Cache to identify whether GWC, the CDN or the browser served the stale copy.
  3. Check whether the seeding job for that zoom range actually ran and covered the whole extent.
  4. Check whether only some zoom levels were re-seeded.
  5. Check CDN and browser Cache-Control separately, since different regions may see different versions.
Fix

Truncate the layer through the GWC REST API with a seedRequest containing type truncate over zoomStart 0 and zoomStop 18, or add a data version to the tile path such as /tiles/roads/v20261029/{z}/{x}/{y}.png so a new URL is a new cache key. For frequently changing layers set expireCache and expireClients to 60 seconds or serve them as dynamic WMS.

Code
HTTP/1.1 200 OK
Cache-Control: max-age=3600
Age: 2412
X-Cache: Hit from geowebcache
curl -s -o /tmp/t1.png "https://gis.example.cn/geoserver/gwc/service/wmts?SERVICE=WMTS&REQUEST=GetTile&LAYER=workspace:roads&STYLE=&TILEMATRIXSET=EPSG:900913&TILEMATRIX=EPSG:900913:14&TILEROW=2418&TILECOL=10521&FORMAT=image/png"
curl -s -o /tmp/t2.png "https://gis.example.cn/geoserver/gwc/service/wmts?...&_=1700000000"
md5sum /tmp/t1.png /tmp/t2.png
Watch out
All 120 field notesChinese originalRunnable examples
English edition written for Atlaslog from the original Chinese field note. Code is unchanged and runs as-is.
Cite this page

Atlaslog (2026). Data updated but tiles still show last week. https://www.jingweizhi.com/en/cookbook/tile-cache-inconsistent.html (accessed 2026-11-03).