class Kemal::Shield::XDNSPrefetchControl
- Kemal::Shield::XDNSPrefetchControl
- Kemal::Shield::Handler
- Kemal::Handler
- Reference
- Object
Overview
Kemal::Shield::XDNSPrefetchControl
is a handler that sets the
X-DNS-Prefetch-Control HTTP header to either "on" or "off".
X-DNS-Prefetch-Control helps controlling browsers' DNS prefetching.
The default value if "off".
The X-DNS-Prefetch-Control header can be updated to "on" by setting
Kemal::Shield.config.x_dns_prefetch_control = true
This handler can be turned of by setting
Kemal::Shield.config.x_dns_control_on = false