{"id":1658,"date":"2020-06-07T22:44:26","date_gmt":"2020-06-07T14:44:26","guid":{"rendered":"https:\/\/www.wesbytes.com\/guide\/?post_type=kb&#038;p=1658"},"modified":"2026-03-26T12:53:42","modified_gmt":"2026-03-26T04:53:42","slug":"does-cloudflare-do-prefetching","status":"publish","type":"kb","link":"https:\/\/www.servergigabit.com\/guide\/kb\/does-cloudflare-do-prefetching","title":{"rendered":"Cloudflare: 5 Powerful Ways Cloudflare Prefetching Can Supercharge Your Website"},"content":{"rendered":"<h2><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/cloudfront-us-east-2.images.arcpublishing.com\/reuters\/L6HJNOYJD5LC5CLJ3NWU7O7KEE.jpg\" alt=\"Cloudflare Do Prefetching?\" width=\"6000\" height=\"3933\" \/><\/h2>\n<h2><strong>Does Cloudflare Do Prefetching?<\/strong><\/h2>\n<p>Yes. Enterprise customers can enable prefetching by turning on \u2018Prefetch URLs\u2019 in the Speed app of the<a href=\"https:\/\/www.cloudflare.com\/\" rel=\"nofollow noopener\" target=\"_blank\"> Cloudflare<\/a> dashboard, and including a list of URLs to prefetch in HTML headers.<\/p>\n<h5>What is Prefetching?<\/h5>\n<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>\n<h5>How do I use Cloudflare\u2019s prefetching feature?<\/h5>\n<p>To use Cloudflare\u2019s prefetching feature, you must:<\/p>\n<p>1. Turn on the Prefetch URLs setting under the Speed app in the Cloudflare dashboard.<\/p>\n<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>\n<p>3. Serve the manifest file with\u00a0<code>text\/plain<\/code>\u00a0as the Content-type response header.<\/p>\n<p>Example HTTP response header:<br \/>\n<code>Link: &lt;http:\/\/www.example.com\/manifest.txt&gt;; rel=\"prefetch\"<\/code><\/p>\n<p>Example manifest.txt:<br \/>\n<code>\/static\/fetch1<\/code><br \/>\n<code>\/\/other.example.com\/fetch2<\/code><br \/>\n<code>http:\/\/another.example.com\/fetch3<\/code><\/p>\n<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 \u2013 any sub-requests from that HTML will not be fetched unless they too are defined explicitly in your manifest.<\/p>\n<p>Cloudflare will prefetch the files listed in the manifest file.<\/p>\n<h5>What Content Can Be Prefetched?<\/h5>\n<p>Cloudflare can prefetch any content that is on your account and behind Cloudflare.<\/p>\n<h5>Who is Prefetching Available For?<\/h5>\n<p>Prefetching is available for all Enterprise customers. To upgrade to Enterprise,\u00a0contact the Cloudflare\u00a0team.<\/p>\n<p>&nbsp;<\/p>\n<p>Stay informed with more expert tips and resources by visiting our blog at <a href=\"https:\/\/www.servergigabit.com\/blog\/\">https:\/\/www.servergigabit.com\/blog\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Does Cloudflare Do Prefetching? Yes. Enterprise customers can enable prefetching by turning on \u2018Prefetch URLs\u2019 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 a higher cache hit rate&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"kbtopic":[43],"kbtag":[1124,1396],"class_list":["post-1658","kb","type-kb","status-publish","hentry","kbtopic-cloudflare","kbtag-cloudflare","kbtag-prefetching"],"_links":{"self":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1658","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb"}],"about":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/types\/kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/comments?post=1658"}],"version-history":[{"count":4,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1658\/revisions"}],"predecessor-version":[{"id":6407,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kb\/1658\/revisions\/6407"}],"wp:attachment":[{"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/media?parent=1658"}],"wp:term":[{"taxonomy":"kbtopic","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtopic?post=1658"},{"taxonomy":"kbtag","embeddable":true,"href":"https:\/\/www.servergigabit.com\/guide\/wp-json\/wp\/v2\/kbtag?post=1658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}