{"id":55,"date":"2021-08-14T10:33:17","date_gmt":"2021-08-14T10:33:17","guid":{"rendered":"https:\/\/docs.poweredcache.com\/?p=55"},"modified":"2022-04-23T16:21:39","modified_gmt":"2022-04-23T16:21:39","slug":"prefetch-dns","status":"publish","type":"post","link":"https:\/\/docs.poweredcache.com\/prefetch-dns\/","title":{"rendered":"Prefetch DNS"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">DNS-prefetch is an attempt to resolve domain names before resources get requested. If your website opens connections to many third parties, prefetching those domains can help to reduce latency.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"980\" height=\"436\" src=\"https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?rs=fill&#038;w=980&#038;h=436&#038;ssl=1&#038;format=webp\" alt=\"\" class=\"wp-image-57\" srcset=\"https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?w=1566&amp;ssl=1&amp;format=webp 1566w, https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?rs=fill&amp;w=300&amp;h=133&amp;ssl=1&amp;format=webp 300w, https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?rs=fill&amp;w=1024&amp;h=455&amp;ssl=1&amp;format=webp 1024w, https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?rs=fill&amp;w=768&amp;h=341&amp;ssl=1&amp;format=webp 768w, https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?rs=fill&amp;w=1536&amp;h=683&amp;ssl=1&amp;format=webp 1536w, https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?rs=fill&amp;w=60&amp;h=27&amp;ssl=1&amp;format=webp 60w, https:\/\/img.poweredcache.net\/docs.poweredcache.com\/wp-content\/uploads\/2021\/08\/prefetch-dns.png?rs=fill&amp;w=150&amp;h=67&amp;ssl=1&amp;format=webp 150w\" sizes=\"(max-width: 980px) 100vw, 980px\" data-recalc-dims=\"1\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The URLs that entered the field will be converted to protocol-relative URLs (\/\/) when adding the hint.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">DNS Prefetch and Preconnect<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The difference between <strong>dns-prefetch<\/strong> and <strong>preconnect<\/strong> is; <strong>preconnect<\/strong> establishes a connection to a server. This process includes DNS resolution, establishing TCP connection, and performing TLS handshake if the requested connection uses SSL. <a href=\"https:\/\/docs.poweredcache.com\/preconnect-resources\/\" data-type=\"post\" data-id=\"175\" target=\"_blank\" rel=\"noreferrer noopener\">Learn more about preconnect<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>DNS-prefetch is an attempt to resolve domain names before resources get requested. If your website opens connections to many third parties, prefetching those domains can help to reduce latency. The URLs that entered the field will be converted to protocol-relative URLs (\/\/) when adding the hint. DNS Prefetch and Preconnect The difference between dns-prefetch and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"powered_cache_disable_cache":false,"powered_cache_disable_lazyload":false,"powered_cache_disable_ucss":false,"powered_cache_specific_ucss":false,"footnotes":""},"categories":[29],"tags":[33,34],"class_list":["post-55","post","type-post","status-publish","format-standard","hentry","category-preload","tag-dns-prefetch","tag-preconnect"],"_links":{"self":[{"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/posts\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/comments?post=55"}],"version-history":[{"count":2,"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/posts\/55\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/posts\/55\/revisions\/181"}],"wp:attachment":[{"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/categories?post=55"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.poweredcache.com\/wp-json\/wp\/v2\/tags?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}