Menu

Vercel CDN now respects Cache-Control headers from external origins by default - Vercel
📰
0

Vercel CDN now respects Cache-Control headers from external origins by default - Vercel

Vercel News·Agustin Falco·4 days ago
#QXkOcFWw
Reading 0:00
15s threshold

New Vercel projects will honor cache-control headers by default when proxying requests to external origins, starting April 6th. Previously, responses served through rewrites to external origins were uncached by default, and enabling caching required the x-vercel-enable-rewrite-caching header in vercel.json . Now, Vercel's CDN automatically respects your origin's caching headers. What's changing: For new projects, Vercel will cache responses from external origins according to upstream Cache-Control , CDN-Cache-Control and Vercel-CDN-Cache-Control headers by default. You can use Cache Tags ( Vercel-Cache-Tag header) from your origins to purge cached content. Existing projects can opt in to the new caching behavior from the project dashboard . You can opt out of caching for specific request paths by setting the x-vercel-enable-rewrite-caching header to 0 .…

Continue reading — create a free account

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

Read More