Example HTTP response header:
Link: <http://www.example.com/manifest.txt>; rel="prefetch"
Example manifest.txt
file:
/static/fetch1//other.example.com/fetch2http://another.example.com/fetch3
URL prefetching means that Cloudflare pre-populates the cache with content a visitor is likely to request next. This setting — when combined with additional setup — leads to a higher cache hit rate and thus a faster experience for the user.
Free | Pro | Business | Enterprise | |
---|---|---|---|---|
Availability | No | No | No | Yes |
For Cloudflare to start prefetching URLs, you will need to enable the feature and include a list of URLs to prefetch.
To enable Prefetch URLs in the dashboard:
To enable or disable Prefetch URLs with the API, send a PATCH
request with prefetch_preload
as the setting name in the URI path, and the value
parameter set to your desired setting ("on"
or "off"
).
After you enable the feature, you also need to indicate which URLs Cloudflare should prefetch.
To do this, include a Link HTTP response header pointing to a manifest file with the rel="prefetch"
attribute and then serve the manifest file with text/plain
as the Content-type response header.
Example HTTP response header:
Link: <http://www.example.com/manifest.txt>; rel="prefetch"
Example manifest.txt
file:
/static/fetch1//other.example.com/fetch2http://another.example.com/fetch3
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. If you reference HTML pages, only the HTML page itself will be pre-fetched - any sub-requests from that HTML will not be fetched unless they are also defined explicitly in your manifest.
The prefetch files limits are the following:
Cloudflare will only prefetch files listed in the manifest file if the resources are those cached by default.
Prefetch is not compatible with the custom cache key configuration. For more information, refer to Cache Key limitations.
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.