From 131348a49fd94f3fd63758c8419e70968464d4a0 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 27 Mar 2021 13:37:56 +0000 Subject: [PATCH] Add immutable caching for vault assets The URLs are cachebusted, so updates will still be applied cleanly and immediately --- src/util.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.rs b/src/util.rs index ff0373d4..40256eb7 100644 --- a/src/util.rs +++ b/src/util.rs @@ -97,7 +97,7 @@ pub struct Cached(R, String); impl Cached { pub fn long(r: R) -> Cached { // 7 days - Self(r, String::from("public, max-age=604800")) + Self::ttl(r, 604800) } pub fn short(r: R) -> Cached {