This demo showcases tag-based cache revalidation between Next.js 16 and Drupal 11 on Pantheon.
How it works:
- Next.js fetches content from Drupal JSON:API with cache tags
- Pages are cached using Pantheon's cache handler (GCS + CDN)
- When content updates in Drupal, a webhook fires
- The webhook calls
/api/revalidate with cache tags - Next.js purges the cached pages matching those tags
- Next request fetches fresh content from Drupal