Menu

1 / 3

Vercel CDN no longer caches responses with Vary: Cookie - Vercel

Vercel News·Shina Patel·5 days ago
#7ZzVUkrE
#vercel#cache#vary#cookie#response
Reading 0:00
15s threshold

Vercel CDN no longer caches origin responses when Vary includes Cookie .

Vary tells a cache which request headers may change the response. Because cookies often contain visitor-specific values, varying by Cookie can create many cache entries that are rarely reused. The response is still served normally but isn't stored for future requests.

You can identify these responses by checking the x-vercel-cache header and Runtime Logs . The header is set to MISS , and Logs show vary_key_denied:cookie as the cache reason.

If Logs show vary_key_denied:cookie for a route you expect to be cached, check the Vary header returned by your origin:

If the response is the same regardless of cookies, remove Cookie from Vary .…

Continue reading — create a free account

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