plume/dns_prefetch_control
X-DNS-Prefetch-Control
This response header controls DNS prefetching, a feature by which browsers proactively perform domain name resolution on links, images, CSS, and other resources the user may navigate to. Prefetching improves performance but can leak information about which resources a page references to the user’s DNS resolver.
See the MDN docs.
Types
An X-DNS-Prefetch-Control header value.
pub type DnsPrefetchControl {
On
Off
}
Constructors
-
OnEnables DNS prefetching.
-
OffDisables DNS prefetching. Plume default.
Values
pub fn to_string(value: DnsPrefetchControl) -> String
Encode as the X-DNS-Prefetch-Control header value.