projects
/
pokerwave.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f70994
)
change cache control settings
author
Geoffrey Allott
<geoffrey@allott.email>
Thu, 25 Mar 2021 19:12:47 +0000
(19:12 +0000)
committer
Geoffrey Allott
<geoffrey@allott.email>
Thu, 25 Mar 2021 19:12:47 +0000
(19:12 +0000)
src/main.rs
patch
|
blob
|
history
diff --git
a/src/main.rs
b/src/main.rs
index b18f35032eecd5ed0ff144f9ae0cd786cb792f6f..936359e8e42c1602cb1711ce76dfc706a256a885 100644
(file)
--- a/
src/main.rs
+++ b/
src/main.rs
@@
-60,8
+60,7
@@
async fn append_cache_control(mut response: Response) -> Result<Response, tide::
if response.status() == StatusCode::Ok {
let mut cache_control = CacheControl::new();
cache_control.push(CacheDirective::Public);
- cache_control.push(CacheDirective::MaxAge(Duration::from_secs(24 * 60 * 60)));
- cache_control.push(CacheDirective::Immutable);
+ cache_control.push(CacheDirective::MaxAge(Duration::from_secs(60 * 60)));
response.append_header(CACHE_CONTROL, cache_control);
}
Ok(response)