Browse Source

Add immutable caching for vault assets

The URLs are cachebusted, so updates will still be applied cleanly and immediately
pull/1545/head
Jake Howard 4 years ago
parent
commit
131348a49f
No known key found for this signature in database GPG Key ID: 57AFB45680EDD477
  1. 2
      src/util.rs

2
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> {

Loading…
Cancel
Save