Cloudfest Conference 2025

Use code HH20 for 20% off an event ticket!

Yesterday's Top Poster

Proxied responses now cacheable via CDN-Cache-Control headers

  • Thread starter Thread starter Casey Gowrie, Joe Haddad
  • Start date Start date
Vercel’s CDN, which can proxy requests to external backends, now caches proxied responses using the CDN-Cache-Control and Vercel-CDN-Cache-Control headers. This aligns caching behavior for external backends with how Vercel Functions are already cached.

This is available starting today, on all plans, at no additional cost.

Per the Targeted HTTP Cache Control spec (RFC 9213), these headers support standard directives like max-age and stale-while-revalidate, enabling fine-grained control over CDN caching without affecting browser caches.

You can return the headers directly from your backend, or define them in vercel.json under the headers key if your backend can't be modified.

No configuration changes or redeployments required. Return the header (or set it in vercel.json) to improve performance, reduce origin load, and ensure fresh content.

Learn more about CDN-Cache-Control headers.

Read more

Continue reading...
 
Back
Top