{"id":2648,"date":"2019-10-22T18:02:39","date_gmt":"2019-10-22T10:02:39","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&#038;p=2648"},"modified":"2022-10-05T08:02:30","modified_gmt":"2022-10-05T00:02:30","slug":"does-cloudflare-do-prefetching","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/does-cloudflare-do-prefetching","title":{"rendered":"Does Cloudflare Do Prefetching?"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2648\" class=\"elementor elementor-2648\" data-elementor-settings=\"[]\">\n\t\t\t\t\t\t<div class=\"elementor-inner\">\n\t\t\t\t\t\t\t<div class=\"elementor-section-wrap\">\n\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-75505114 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"75505114\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t\t\t<div class=\"elementor-row\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-235aa2fc\" data-id=\"235aa2fc\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-column-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t<div class=\"elementor-widget-wrap\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-5119f9c elementor-widget elementor-widget-heading\" data-id=\"5119f9c\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Does Cloudflare Do Prefetching?<\/h2>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-16df8956 elementor-widget elementor-widget-text-editor\" data-id=\"16df8956\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-text-editor elementor-clearfix\">\n\t\t\t\t<p>Yes. Enterprise customers can enable prefetching by turning on &#8216;Prefetch URLs&#8217; in the Speed app of the Cloudflare dashboard, and including a list of URLs to prefetch in HTML headers.<\/p><h3><strong>What is Prefetching?<\/strong><\/h3><p>Prefetching means that Cloudflare pre-populates the cache with content a visitor is likely to request next. This guarantees a higher cache hit rate and thus a faster experience for the user.<\/p><p>How do I use Cloudflare&#8217;s prefetching feature?<\/p><p>To use Cloudflare&#8217;s prefetching feature, you must:<\/p><p>1. Turn on the Prefetch URLs setting under the Speed app in the Cloudflare dashboard.<\/p><p>2. Include a\u00a0<code>Link<\/code>\u00a0HTTP response header pointing to a manifest file with the\u00a0<code>rel=\u201dprefetch\u201d<\/code>\u00a0attribute, see the detailed example below (replace the URL with your manifest file URL).<\/p><p>3. Serve the manifest file with\u00a0<code>text\/plain<\/code>\u00a0as the Content-type response header.<\/p><p>Example HTTP response header:<br \/><code>Link: &lt;http:\/\/www.example.com\/manifest.txt&gt;; rel=\"prefetch\"<\/code><\/p><p>Example manifest.txt:<br \/><code>\/static\/fetch1<\/code><br \/><code>\/\/other.example.com\/fetch2<\/code><br \/><code>http:\/\/another.example.com\/fetch3<\/code><\/p><p>The manifest file should contain URIs, protocol-relative URLs or full URLs, separated by new lines. These files must be on your websites that are on Cloudflare. Note that if you reference HTML pages, only the HTML page itself will be pre-fetched &#8211; any sub-requests from that HTML will not be fetched unless they too are defined explicitly in your manifest.<\/p><p>Cloudflare will prefetch the files listed in the manifest file.<\/p><h3><strong>What Content Can Be Prefetched?<\/strong><\/h3><p>Cloudflare can prefetch any content that is on your account and behind Cloudflare.<\/p><h3><strong>Who is Prefetching Available For?<\/strong><\/h3><p>Prefetching is available for all Enterprise customers. To upgrade to Enterprise,\u00a0contact the Cloudflare\u00a0team.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Does Cloudflare Do Prefetching? Yes. Enterprise customers can enable prefetching by turning on &#8216;Prefetch URLs&#8217; in the Speed app of the Cloudflare dashboard, and including a list of URLs to prefetch in HTML headers. What is Prefetching? Prefetching means that Cloudflare pre-populates the cache with content a visitor is likely to request next. This guarantees &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/www.mondoze.com\/guide\/kb\/does-cloudflare-do-prefetching\"> <span class=\"screen-reader-text\">Does Cloudflare Do Prefetching?<\/span> Read More \u00bb<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}}},"kbtopic":[53],"kbtag":[110],"mkb_version":[],"_links":{"self":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2648"}],"collection":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/comments?post=2648"}],"version-history":[{"count":7,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2648\/revisions"}],"predecessor-version":[{"id":21944,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kb\/2648\/revisions\/21944"}],"wp:attachment":[{"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/media?parent=2648"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=2648"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/kbtag?post=2648"},{"taxonomy":"mkb_version","embeddable":true,"href":"https:\/\/www.mondoze.com\/guide\/wp-json\/wp\/v2\/mkb_version?post=2648"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}