Next.js 16 + Drupal 11 Cache Revalidation Demo

This demo showcases tag-based cache revalidation between Next.js 16 and Drupal 11 on Pantheon.

How it works:

  1. Next.js fetches content from Drupal JSON:API with cache tags
  2. Pages are cached using Pantheon's cache handler (GCS + CDN)
  3. When content updates in Drupal, a webhook fires
  4. The webhook calls /api/revalidate with cache tags
  5. Next.js purges the cached pages matching those tags
  6. Next request fetches fresh content from Drupal