mirror of
https://github.com/DNSCrypt/doh-server.git
synced 2025-04-05 22:17:38 +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::CONTENT_TYPE, "application/dns-message")
|
||||||
.header(
|
.header(
|
||||||
hyper::header::CACHE_CONTROL,
|
hyper::header::CACHE_CONTROL,
|
||||||
format!("max-age={}", ttl).as_str(),
|
format!("max-age={}, stale-while-revalidate={}", ttl, ttl).as_str(),
|
||||||
)
|
)
|
||||||
.body(Body::from(packet))
|
.body(Body::from(packet))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue