Menu

Tag-based cache invalidation now available for all responses - Vercel
📰
0

Tag-based cache invalidation now available for all responses - Vercel

Vercel News·Luba Kravchenko·4 days ago
#oMJrdvEK
Reading 0:00
15s threshold

Vercel's CDN now supports tag-based cache invalidation, giving you granular control over cached content across all frameworks and backends. Responses can now be tagged using the Vercel-Cache-Tag header with a comma-separated list of tags as a new cache organization mechanism to group related content and invalidate it together, rather than just purging your entire cache when content changes. This complements existing headers that cache responses on Vercel's CDN, like Cache-Control , CDN-Cache-Control , and Vercel-CDN-Cache-Control and exposes the same underlying technology that powers Next.js Incremental Static Regeneration (ISR) to any framework or backend. We recommend Next.js applications continue using Incremental Static Regeneration (ISR) for built-in cache tagging and invalidation without managing cache headers manually. Link to heading How it works After a response has a cache tag, you can invalidate it through dashboard settings , the Vercel CLI , the Function API , or the REST API .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More