@@ -57,8 +57,8 @@ test.describe('Dynamic CMS', () => {
57
57
58
58
expect ( response1 ?. status ( ) ) . toEqual ( 404 )
59
59
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 / ,
62
62
)
63
63
expect ( headers1 [ 'netlify-cache-tag' ] ) . toEqual ( expectedCacheTag )
64
64
expect ( headers1 [ 'netlify-cdn-cache-control' ] ) . toMatch (
@@ -77,7 +77,7 @@ test.describe('Dynamic CMS', () => {
77
77
expect ( response2 ?. status ( ) ) . toEqual ( 200 )
78
78
expect ( headers2 [ 'cache-control' ] ) . toEqual ( 'public,max-age=0,must-revalidate' )
79
79
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 ) / ,
81
81
)
82
82
expect ( headers2 [ 'netlify-cache-tag' ] ) . toEqual ( expectedCacheTag )
83
83
expect ( headers2 [ 'netlify-cdn-cache-control' ] ) . toMatch (
@@ -96,7 +96,7 @@ test.describe('Dynamic CMS', () => {
96
96
expect ( response3 ?. status ( ) ) . toEqual ( 404 )
97
97
expect ( headers3 [ 'cache-control' ] ) . toEqual ( 'public,max-age=0,must-revalidate' )
98
98
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 ) / ,
100
100
)
101
101
expect ( headers3 [ 'netlify-cache-tag' ] ) . toEqual ( expectedCacheTag )
102
102
expect ( headers3 [ 'netlify-cdn-cache-control' ] ) . toMatch (
0 commit comments