[dnsdist] [DoH] Cache control

Remi Gacogne remi.gacogne at powerdns.com
Wed Nov 27 17:10:45 UTC 2019


Hi Stéphane,

On 11/26/19 10:01 AM, Stephane Bortzmeyer wrote:
> By default, dnsdist 1.4.0 working as a DoH resolver does not send
> cache control headers (Cache-control:, Expires:, Last-Modified:…)
> 
> < HTTP/2 200 
> < server: h2o/dnsdist
> < content-type: application/dns-message
> < content-length: 88
> 
> I do not find how to enable them. The RFC 8484 (section 5.1)
> recommends Cache-control: based on the TTL.
> 
> cache-control = max-age=3709

You are right, this is definitely something that we should support. I
opened a feature request for it [1] so we don't forget about it.

[1]: https://github.com/PowerDNS/pdns/issues/8586

Thanks!

-- 
Remi Gacogne
PowerDNS.COM BV - https://www.powerdns.com/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.powerdns.com/pipermail/dnsdist/attachments/20191127/36357fe9/attachment.sig>


More information about the dnsdist mailing list