mirror of
https://github.com/DNSCrypt/doh-server.git
synced 2025-04-03 04:57:37 +03:00
Add stale-while-revalidate to Cache-Control
This commit is contained in:
parent
5058aeaf07
commit
1812880562
1 changed files with 1 additions and 1 deletions
|
@ -212,7 +212,7 @@ impl DoH {
|
|||
.header(hyper::header::CONTENT_TYPE, "application/dns-message")
|
||||
.header(
|
||||
hyper::header::CACHE_CONTROL,
|
||||
format!("max-age={}", ttl).as_str(),
|
||||
format!("max-age={}, stale-while-revalidate={}", ttl, ttl).as_str(),
|
||||
)
|
||||
.body(Body::from(packet))
|
||||
.unwrap();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue