1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-29 06:20:29 +01:00

Add immutable caching for vault assets

The URLs are cachebusted, so updates will still be applied cleanly and immediately
Dieser Commit ist enthalten in:
Jake Howard 2021-03-27 13:37:56 +00:00
Ursprung b22564cb00
Commit 131348a49f
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 57AFB45680EDD477

Datei anzeigen

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