Vercel adds framework rules to bypass cache only when needed
Brief
Frameworks can now selectively bypass Vercel’s cache for prerendered pages using header-based rules. Next.js 16.5 is the first to use the capability.
How the rules work
- Rules are configured through the Build Output API and checked in order; a match bypasses the cache and invokes a function.
- The rules apply only to prerendered pages, not API routes or server-rendered pages.
Next.js use
- Next.js 16.5 bypasses the cache for HTML-limited bots only when the cached page lacks required metadata, with no configuration beyond upgrading.
- On nextjs.org, over 70% of those requests are now cache hits.
Generated by AI from the original article. Check the source for full details.