- No full-cache invalidation
- Keep pages fast and cached
- Reduce rebuilds and API calls
- Reflect changes in near real-time
Every response from the CDA includes an X-Cache-Tags header which represent the exact records, models, or assets involved in that query.
When you update content, we automatically purge all matching tags. Nothing more, nothing less.
Cache Tags work natively with Fastly (via Surrogate-Key) and Cloudflare (via Cache-Tag), letting you connect purge events via webhooks, or trigger them via CLI or API.
It works with any edge-cached SSR, static site revalidation, or serverless functions that honor CDN headers.
fetch()
and revalidateTag()
are the founding
blocks for using cache tags, together with the framework inner logic. So we implemented Cache
Tags on a Next.js project to show you how they work.