Verified, then logged.
Fri 4 Dec 2026 · 06:57 KST / 21:57 UTC한국어 | ENSearch /

02 / IT · Analysis

Next.js 16.5 narrows cache bypass for bot requests

Vercel’s CDN rules can check headers from both the incoming request and the cached response.

A laptop in a CDN server aisle shows one crawler request served from a cached page with metadata and another routed to a fresh render because the cached page lacks metadata. AI-generated image

Next.js 16.5 bypasses the cache for certain bots requesting partially prerendered pages only when the cached page lacks the metadata those bots need. Vercel said it added rules to its content delivery network (CDN) that can check headers from both the request and the cached response, and Next.js was the first framework to use them.

Previously, Next.js bypassed the cache every time a bot with limited HTML processing, such as Bingbot or Slackbot, requested a partially prerendered page. These bots need complete metadata in the document’s <head>, and Next.js could not determine whether the cached page contained it.

Vercel said cached pages served more than 70% of those bot requests on nextjs.org. Its changelog did not disclose the measurement period or the number of requests.

Cache bypass rules that check cached responses

Frameworks can set cache bypass conditions through the Build Output API, which lets them produce a Vercel deployment configuration from their build output. The afterCacheBypass rules can check either kind of header on its own or combine both in a single rule.

Vercel’s example sets version to 3 in .vercel/output/config.json and uses the request’s user-agent header to identify the target bots. The rule bypasses the cache when the bot matches and the cached response’s x-has-head-metadata header has a value of 0.

Vercel checks the rules in the order they are listed. A match invokes a function to generate a fresh response and sets the x-vercel-cache header to BYPASS. If no rule matches, Vercel serves the cached page.

The rules apply only to prerendered pages and exclude API routes and pages rendered on the server at request time. Next.js projects deployed on Vercel get the new bot handling when they upgrade to 16.5, with no extra configuration.

Vercel’s rates for its Seoul region (icn1) apply to Pro teams, which are billed for each project’s use of each resource. CDN requests cost $2.60 per million, and fast data transfer costs $0.35 per GB.

The listed rates are in US dollars and exclude taxes. Where required by law, Vercel calculates tax based on the billing address and adds it to the invoice.

Pro customers can pay in another currency if their card provider allows the charge in US dollars after conversion. Usage beyond the included credit is billed on demand.

Vercel usually adds those charges to the next regular invoice. If accrued usage reaches a billing threshold, Vercel may issue an invoice for that usage before the cycle ends.