Stale-if-error cache-control directive now supported for all responses
Vercel CDN adds support for the stale-if-error Cache-Control directive, allowing stale cached responses to be served during origin failures such as 500 errors or DNS issues.
Vercel CDN now supports the directive with Cache-Control headers, enabling more resilient caching behavior during origin failures.stale-if-error You can now use the directive to specify how long (in seconds) a stale cached response can still be served if a request to the origin fails. When this directive is present and the origin returns an error, the CDN may serve a previously cached response instead of returning the error to the client.
Stale responses may be served for errors like 500 Internal Server Errors, network failures, or DNS errors.stale-if-error This allows applications to remain available and respond gracefully when upstream services are temporarily unavailable. Read the to learn more.stale-if-error documentation Read more