Test the tag-to-path mapping and CDN cache clearing flow.
Shows which WordPress surrogate keys are mapped to which page paths. This mapping is built by the cache handler when pages are rendered.
Fetch a page and inspect cache-related headers. Look for age (CDN cache age) and x-nextjs-cache (origin cache status).
Simulates a WordPress webhook. Calls revalidateTag() for each surrogate key, which invalidates the origin cache and triggers CDN path clearing.
age header from CDN)post-listage header should be 0 or missing (CDN cache was cleared)# Check CDN cache headers before revalidation
curl -sI https://YOUR-SITE.pantheonsite.io/blogs | grep -iE 'age|cache-control|x-nextjs'
# Trigger revalidation
curl -X POST https://YOUR-SITE.pantheonsite.io/api/revalidate \
-H "Content-Type: application/json" \
-H "X-Webhook-Secret: pantheon-test-2027" \
-d '{"surrogate_keys": ["post-list"]}'
# Check headers again — age should be reset
curl -sI https://YOUR-SITE.pantheonsite.io/blogs | grep -iE 'age|cache-control|x-nextjs'
# Check tag mapping
curl -s https://YOUR-SITE.pantheonsite.io/api/tag-mapping | python3 -m json.tool