@@ -57,8 +57,8 @@ test.describe('Dynamic CMS', () => {
5757
5858 expect ( response1 ?. status ( ) ) . toEqual ( 404 )
5959 expect ( headers1 [ 'cache-control' ] ) . toEqual ( 'public,max-age=0,must-revalidate' )
60- expect ( headers1 [ 'cache-status' ] ) . toEqual (
61- ' "Next.js"; fwd=miss, "Netlify Durable"; fwd=uri-miss; stored, "Netlify Edge"; fwd=miss' ,
60+ expect ( headers1 [ 'cache-status' ] ) . toMatch (
61+ / " N e x t .j s " ; f w d = m i s s \s * ( , | \n ) \s * " N e t l i f y D u r a b l e " ; f w d = u r i - m i s s ; s t o r e d \s * ( , | \n ) \s * " N e t l i f y E d g e " ; f w d = m i s s / ,
6262 )
6363 expect ( headers1 [ 'netlify-cache-tag' ] ) . toEqual ( expectedCacheTag )
6464 expect ( headers1 [ 'netlify-cdn-cache-control' ] ) . toMatch (
@@ -77,7 +77,7 @@ test.describe('Dynamic CMS', () => {
7777 expect ( response2 ?. status ( ) ) . toEqual ( 200 )
7878 expect ( headers2 [ 'cache-control' ] ) . toEqual ( 'public,max-age=0,must-revalidate' )
7979 expect ( headers2 [ 'cache-status' ] ) . toMatch (
80- / " N e x t .j s " ; h i t , " N e t l i f y D u r a b l e " ; f w d = s t a l e ; t t l = [ 0 - 9 ] + ; s t o r e d , " N e t l i f y E d g e " ; f w d = ( s t a l e | m i s s ) / ,
80+ / " N e x t .j s " ; h i t \s * ( , | \n ) \s * " N e t l i f y D u r a b l e " ; f w d = s t a l e ; t t l = [ 0 - 9 ] + ; s t o r e d \s * ( , | \n ) \s * " N e t l i f y E d g e " ; f w d = ( s t a l e | m i s s ) / ,
8181 )
8282 expect ( headers2 [ 'netlify-cache-tag' ] ) . toEqual ( expectedCacheTag )
8383 expect ( headers2 [ 'netlify-cdn-cache-control' ] ) . toMatch (
@@ -96,7 +96,7 @@ test.describe('Dynamic CMS', () => {
9696 expect ( response3 ?. status ( ) ) . toEqual ( 404 )
9797 expect ( headers3 [ 'cache-control' ] ) . toEqual ( 'public,max-age=0,must-revalidate' )
9898 expect ( headers3 [ 'cache-status' ] ) . toMatch (
99- / " N e x t .j s " ; f w d = m i s s , " N e t l i f y D u r a b l e " ; f w d = s t a l e ; t t l = [ 0 - 9 ] + ; s t o r e d , " N e t l i f y E d g e " ; f w d = ( s t a l e | m i s s ) / ,
99+ / " N e x t .j s " ; f w d = m i s s \s * ( , | \n ) \s * " N e t l i f y D u r a b l e " ; f w d = s t a l e ; t t l = [ 0 - 9 ] + ; s t o r e d \s * ( , | \n ) \s * " N e t l i f y E d g e " ; f w d = ( s t a l e | m i s s ) / ,
100100 )
101101 expect ( headers3 [ 'netlify-cache-tag' ] ) . toEqual ( expectedCacheTag )
102102 expect ( headers3 [ 'netlify-cdn-cache-control' ] ) . toMatch (
0 commit comments