How do I cache everything on a URL?

If you would like to extend Cloudflare's CDN to cache more than static content by default, you can use Page Rules to extend the caching capabilities to cache more content. Page Rules can be accessed by going to the settings for the domain that you want to create a Page Rule for. Once you are on the page for Page Rules, you would then place the URL in the selector box that you want to extend caching for, such as:

OR (for a subdomain)

If you want to cache everything on, then you would want to input the URL like* (include the star) and choose "Cache Everything" in the cache option drop down selectors. The same logic would apply to any other url that you want to cache.

Important: Caching everything can cause issues with admin sections of the site and other logged in sessions. If you do not want to have caching function on these specific urls, then we recommend setting a Page Rule to exclude these *before* creating a Page Rule to cache everything.

Related: Page Rule tutorial




Not finding what you need?

95% of questions can be answered using the search tool. This is the quickest way to get a response.

Powered by Zendesk