Unverified Commit e3d15f98 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Remove `stale-if-error` header from SPR (#8866)

The Now CDN does not support the `stale-if-error` header and already behaves like that for `stale-while-revalidate`.

Removing this header allows Now CDN to use its default headers instead of sending _only_ `stale-if-error` after stripping `s-maxage` and `stale-while-revalidate`.
parent 297d1466
...@@ -533,7 +533,7 @@ export default class Server { ...@@ -533,7 +533,7 @@ export default class Server {
if (revalidate) { if (revalidate) {
res.setHeader( res.setHeader(
'Cache-Control', 'Cache-Control',
`s-maxage=${revalidate}, stale-while-revalidate, stale-if-error` `s-maxage=${revalidate}, stale-while-revalidate`
) )
} }
res.end(payload) res.end(payload)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment