File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ use iron::{
6
6
} ;
7
7
8
8
#[ cfg( test) ]
9
- pub const NO_CACHE : & str = "no-cache, max-age=0" ;
9
+ pub const NO_CACHE : & str = "max-age=0" ;
10
10
11
11
/// defines the wanted caching behaviour for a web response.
12
12
pub enum CachePolicy {
@@ -40,7 +40,7 @@ impl CachePolicy {
40
40
pub fn render ( & self , config : & Config ) -> Vec < CacheDirective > {
41
41
match * self {
42
42
CachePolicy :: NoCaching => {
43
- vec ! [ CacheDirective :: NoCache , CacheDirective :: MaxAge ( 0 ) ]
43
+ vec ! [ CacheDirective :: MaxAge ( 0 ) ]
44
44
}
45
45
CachePolicy :: NoStoreMustRevalidate => {
46
46
vec ! [
@@ -118,7 +118,7 @@ mod tests {
118
118
use iron:: headers:: CacheControl ;
119
119
use test_case:: test_case;
120
120
121
- #[ test_case( CachePolicy :: NoCaching , "no-cache, max-age=0" ) ]
121
+ #[ test_case( CachePolicy :: NoCaching , "max-age=0" ) ]
122
122
#[ test_case(
123
123
CachePolicy :: NoStoreMustRevalidate ,
124
124
"no-cache, no-store, must-revalidate, max-age=0"
You can’t perform that action at this time.
0 commit comments