How can I tell if Cloudflare is caching my site or a specific file?

To test if your site or a specific resource is being cached, use webpagetest.org. After you enter a URL and run a test, you can review the details page. If Cloudflare is caching, the response headers show the following:

CF-Cache-Status: HIT

If you have access to a terminal or command line window, you can also check a particular resource by using this command:

curl -svo /dev/null http://<your_URL>

A miss status means that Cloudflare is not caching that particular resource. Expired means that the resource is no longer in the Cloudflare cache.

To learn more, see Cloudflare CF-Cache-Status responses.

Note: By default, the Cloudflare CDN only caches on-site static content resources based on the file extension.

Still not finding what you need?

The Cloudflare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk