1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-06-04 01:53:56 +00:00

Additionally set expires header when caching responses

Browsers are rather smart, but also dumb. This uses the `Expires` header
alongside `cache-control` to better prompt the browser to actually
cache.

Unfortunately, firefox still tries to "race" its own cache, in an
attempt to respond to requests faster, so still ends up making a bunch
of requests which could have been cached. Doesn't appear there's any way
around this.
This commit is contained in:
Jake Howard 2021-12-28 16:24:42 +00:00
parent cc646b1519
commit 4584cfe3c1
No known key found for this signature in database
GPG key ID: 57AFB45680EDD477
5 changed files with 75 additions and 40 deletions

1
Cargo.lock generated
View file

@ -3295,6 +3295,7 @@ dependencies = [
"governor",
"handlebars",
"html5ever",
"httpdate",
"idna 0.2.3",
"job_scheduler",
"jsonwebtoken",