- Symptom
- x-vercel-cache: MISS on routes that used to HITRuntime logs show cache reason vary_key_denied:cookieOrigin load and function invocations rise with no code change
- Cause
- Since September 30, 2026 the Vercel CDN refuses to store any response whose Vary header names Cookie. Middleware or frameworks that add Vary: Cookie globally make those routes uncacheable.
- Fix
- Remove Cookie from Vary on routes that do not change per visitor, and set Vary only on the routes that need it.
- Apply
// before: Vary: Cookie, Accept-Encoding // after (cacheable): headers: { 'Cache-Control': 'public, s-maxage=600', Vary: 'Accept-Language' }- Affected
- Vercel CDN, since 2026-09-30
- Sources
Last verified 2026-10-15 · Confirmed by 0 builders