Reputation: 8318
How can I enable DNS pre-resolution and TCP pre-connection in a Chrome browser (Mac OS X), when the chrome://dns
page tells that "DNS pre-resolution and TCP pre-connection is disabled"?
Upvotes: 5
Views: 5182
Reputation: 41268
FWIW I had the behavior as in Q&A above in Chrome on Windows:
chrome://dns
says "DNS pre-resolution and TCP pre-connection is disabled.", whereas
chrome://settings
shows "Use a prediction service to load pages more quickly" as tickedI was wondering how this relates to <link rel="dns-prefetch" href="//some.domain">
and <link rel="preconnect" href="https://some.domain">
.
chrome://dns
tell you that the services are disabled (perhaps by installing uBlock) serve the following HTMLs on localhost
<!doctype html><html><head>
<link rel="dns-prefetch" href="//ajax.googleapis.com">
</head><body></html>
<!doctype html><html><head>
<link rel="preconnect" href="https://ajax.googleapis.com">
</head><body></html>
chrome://net-internals/#dns
and clear host cachehttp://localhost
chrome://net-internals/#dns
and clear host cachehttp://localhost
chrome://net-internals/#dns
and observe DNS entriespreload
always works; dns-prefetch
is blocked by uBlock if uBlock setting Disable pre-fetching (to prevent any connection for blocked network requests)
is enableddns-prefetch
and preload
workUpvotes: 2
Reputation: 8318
It's in the advanced settings and called "Predict network actions to improve page load performance"
Upvotes: 4