Support for the stale-if-error Cache-Control directive on all responses
Key point
Vercel CDN now supports the stale-if-error directive, which serves cached responses when the origin server fails.
Details
Vercel CDN now supports the stale-if-error directive in the Cache-Control header. This feature allows service to continue using cached data even when the origin server experiences a failure.
Users can use the stale-if-error directive to specify how long (in seconds) a stale cached response should be served when a request to the origin server fails. If a 500 Internal Server Error, network failure, DNS error, or similar issue occurs, the CDN will deliver the existing cached response to the client instead of returning an error.
This helps increase application availability and enables reliable handling even when an upstream service is temporarily down.
This summary was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report summary errors, attribution issues, or removal requests via Contact.