File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ function setCacheControlFromRequestContext(
217217 // if we are serving already stale response, instruct edge to not attempt to cache that response
218218 headers . get ( 'x-nextjs-cache' ) === 'STALE'
219219 ? 'public, max-age=0, must-revalidate, durable'
220- : `s-maxage=${ revalidate === false ? 31536000 : revalidate } , stale-while-revalidate=31536000, durable`
220+ : `s-maxage=${ revalidate || 31536000 } , stale-while-revalidate=31536000, durable`
221221
222222 headers . set ( 'netlify-cdn-cache-control' , cdnCacheControl )
223223}
@@ -261,8 +261,6 @@ export const setCacheControlHeaders = (
261261 }
262262
263263 if (
264- ( ! cacheControl || cacheControl . includes ( 'no-store' ) ) &&
265- typeof requestContext . pageHandlerRevalidate !== 'undefined' &&
266264 [ 'GET' , 'HEAD' ] . includes ( request . method ) &&
267265 ! headers . has ( 'cdn-cache-control' ) &&
268266 ! headers . has ( 'netlify-cdn-cache-control' )
You can’t perform that action at this time.
0 commit comments