Today, when I look at the source code of a website, I found the <link rel= "Dns-prefetch" href= "//static.tuweia.cn/" a little curious about dns-prefetch, because more than once, Today, I can't help but see what technology he really is.
Here is a brief description of Dns-prefetch found on the internet.
DNS implements the mapping of domain names to IP. Access to the site through the domain name, each request to do DNS resolution. At present, the DNS resolution is usually below 200ms each time. For DNS resolution of time-consuming problems, some browsers use DNS Prefetch to improve the fluency of access.
What is DNS Prefetch?
DNS Prefetch is a DNS pre-resolution technology, when you browse the Web page, the browser will load the page when the domain name in the Web page to resolve the cache, so that you click on the current page of the connection does not need to DNS analysis, reduce user latency, improve the user experience.
Currently, the browser that supports DNS Prefetch has Google Chrome and Firefox 3.5 so how do you control the browser-side domain name on the server side?
If you want the browser to resolve a particular domain name, you can add a link tag to the page to implement. For example:
<link rel= "Dns-prefetch" href= "www.ytuwlg.iteye.com"/>
If you want to control whether the browser side of the domain name for the pre-resolution, you can use the HTTP header X-dns-prefetch-control properties for control.
Unfortunately, the only Google Chrome and firefox3.5 to support the above tag are the details of the DNS Prefetch in Google Chrome:
Http://dev.chromium.org/developers/design-documents/dns-prefetching
In Chrome, you can enter ABOUT:HISTOGRAMS/DNS in the Address bar. Prefetchfoundname and About:dns to view the current browser's pre-resolution data.