vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 131348a49fd94f3fd63758c8419e70968464d4a0
parent b22564cb000febe9a871f2121d96993ff5569c7b
Author: Jake Howard <git@theorangeone.net>
Date:   Sat, 27 Mar 2021 13:37:56 +0000

Add immutable caching for vault assets

The URLs are cachebusted, so updates will still be applied cleanly and immediately

Diffstat:
Msrc/util.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util.rs b/src/util.rs @@ -97,7 +97,7 @@ pub struct Cached<R>(R, String); impl<R> Cached<R> { pub fn long(r: R) -> Cached<R> { // 7 days - Self(r, String::from("public, max-age=604800")) + Self::ttl(r, 604800) } pub fn short(r: R) -> Cached<R> {