File tree 1 file changed +21
-0
lines changed
cypress/integration/default
1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,27 @@ describe('appDir', () => {
29
29
} )
30
30
} )
31
31
32
+ it ( 'returns a vary header for RSC data requests to ISR pages' , ( ) => {
33
+ cy . request ( {
34
+ url : '/blog/erica/' ,
35
+ followRedirect : false ,
36
+ headers : {
37
+ RSC : '1' ,
38
+ } ,
39
+ } ) . then ( ( response ) => {
40
+ expect ( response . headers ) . to . have . property ( 'vary' ) . contains ( 'RSC' )
41
+ } )
42
+ } )
43
+
44
+ it ( 'returns a vary header for non-RSC data requests to ISR pages' , ( ) => {
45
+ cy . request ( {
46
+ url : '/blog/erica/' ,
47
+ followRedirect : false ,
48
+ } ) . then ( ( response ) => {
49
+ expect ( response . headers ) . to . have . property ( 'vary' ) . contains ( 'RSC' )
50
+ } )
51
+ } )
52
+
32
53
it ( 'returns RSC data for RSC requests to static pages' , ( ) => {
33
54
cy . request ( {
34
55
url : '/blog/erica/first-post/' ,
You can’t perform that action at this time.
0 commit comments