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:
parent
cc646b1519
commit
4584cfe3c1
5 changed files with 75 additions and 40 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -3295,6 +3295,7 @@ dependencies = [
|
|||
"governor",
|
||||
"handlebars",
|
||||
"html5ever",
|
||||
"httpdate",
|
||||
"idna 0.2.3",
|
||||
"job_scheduler",
|
||||
"jsonwebtoken",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue