change cache control settings
authorGeoffrey Allott <geoffrey@allott.email>
Thu, 25 Mar 2021 19:12:47 +0000 (19:12 +0000)
committerGeoffrey Allott <geoffrey@allott.email>
Thu, 25 Mar 2021 19:12:47 +0000 (19:12 +0000)
src/main.rs

index b18f35032eecd5ed0ff144f9ae0cd786cb792f6f..936359e8e42c1602cb1711ce76dfc706a256a885 100644 (file)
@@ -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)