@@ -413,12 +413,12 @@ test.describe('Simple Page Router (no basePath, no i18n)', () => {
413413 expect ( date1 . localeCompare ( beforeFirstFetch ) ) . toBeGreaterThan ( 0 )
414414
415415 // allow page to get stale
416- await page . waitForTimeout ( 60_000 )
416+ await page . waitForTimeout ( 61_000 )
417417
418418 const response2 = await page . goto ( new URL ( pathname , pageRouter . url ) . href )
419419 expect ( response2 ?. status ( ) ) . toBe ( 200 )
420420 expect ( response2 ?. headers ( ) [ 'cache-status' ] ) . toMatch (
421- / " N e t l i f y ( E d g e | D u r a b l e ) " ; h i t ; f w d = s t a l e / m,
421+ / ( " N e t l i f y E d g e " ; h i t ; f w d = s t a l e | " N e t l i f y D u r a b l e " ; h i t ; t t l = - [ 0 - 9 ] + ) / m,
422422 )
423423 expect ( response2 ?. headers ( ) [ 'netlify-cdn-cache-control' ] ) . toMatch (
424424 / s - m a x a g e = 6 0 , s t a l e - w h i l e - r e v a l i d a t e = [ 0 - 9 ] + , d u r a b l e / ,
@@ -436,8 +436,8 @@ test.describe('Simple Page Router (no basePath, no i18n)', () => {
436436 const response3 = await page . goto ( new URL ( pathname , pageRouter . url ) . href )
437437 expect ( response3 ?. status ( ) ) . toBe ( 200 )
438438 expect ( response3 ?. headers ( ) [ 'cache-status' ] ) . toMatch (
439- // hit, without being followed by ';fwd=stale'
440- / " N e t l i f y ( E d g e | D u r a b l e ) " ; h i t (? ! ; f w d = s t a l e ) / m,
439+ // hit, without being followed by ';fwd=stale' for edge or negative TTL for durable, optionally with fwd=stale
440+ / ( " N e t l i f y E d g e " ; h i t (? ! ; f w d = s t a l e ) | " N e t l i f y D u r a b l e " ; h i t (? ! ; t t l = - [ 0 - 9 ] + ) ) / m,
441441 )
442442 expect ( response3 ?. headers ( ) [ 'netlify-cdn-cache-control' ] ) . toMatch (
443443 / s - m a x a g e = 6 0 , s t a l e - w h i l e - r e v a l i d a t e = [ 0 - 9 ] + , d u r a b l e / ,
0 commit comments