File tree 1 file changed +23
-1
lines changed
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ export default
26
26
]
27
27
} ,
28
28
{
29
- name : 'HTTP cache updates the Age header' ,
29
+ name : 'HTTP cache updates the Age header (Expires) ' ,
30
30
requests : [
31
31
{
32
32
response_headers : [
@@ -47,6 +47,28 @@ export default
47
47
}
48
48
]
49
49
} ,
50
+ {
51
+ name : 'HTTP cache updates the Age header (CC: max-age)' ,
52
+ requests : [
53
+ {
54
+ response_headers : [
55
+ [ 'Cache-Control' , 'max-age=600' ] ,
56
+ [ 'Date' , 0 ] ,
57
+ [ 'Age' , '30' ]
58
+ ] ,
59
+ pause_after : true
60
+ } ,
61
+ {
62
+ expected_type : 'cached' ,
63
+ expected_response_headers : [
64
+ [ 'Age' , function ( assert , p , a ) {
65
+ assert . isTrue ( a !== undefined , `${ p } isn't present` )
66
+ assert . isTrue ( parseInt ( a ) > 32 , `${ p } is ${ a } , should be bigger` )
67
+ } ]
68
+ ]
69
+ }
70
+ ]
71
+ } ,
50
72
{
51
73
name : 'HTTP cache doesn\'t update the Date header' ,
52
74
requests : [
You can’t perform that action at this time.
0 commit comments