diff --git a/server/render.js b/server/render.js index 7fa36c43..3106cfc6 100644 --- a/server/render.js +++ b/server/render.js @@ -193,7 +193,7 @@ async function doRender (req, res, pathname, query, { export async function renderScriptError (req, res, page, error) { // Asks CDNs and others to not to cache the errored page - res.setHeader('Cache-Control', 'no-cache, no-store, must-revalidate') + res.setHeader('Cache-Control', 'no-cache, no-store, max-age=0, must-revalidate') if (error.code === 'ENOENT' || error.message === 'INVALID_BUILD_ID') { res.statusCode = 404