How to clear the Cloudflare cache

This article describes how to clear the cache in Cloudflare. You may need to do this when you want to fetch the most recent version of a file from your web site right away. For example, if you change a CSS file and do not see the new styling in your browser, you can clear the cache and force Cloudflare to get the updated file immediately.

You can clear the entire cache at once, or you can selectively clear parts of the cache.

Because Cloudflare must rebuild the cache after you clear it, site performance may temporarily be reduced.

For information about how to activate Cloudflare for your account, please see this article. For detailed information about how to configure Cloudflare settings, please see the Cloudflare documentation.

Clearing the Cloudflare cache

To clear the Cloudflare cache, follow these steps:

  1. Log in to Cloudflare with your Cloudflare account.
  2. In the left sidebar, click Websites, and then click your domain name (for example, example.com):

    Cloudflare - Select domain

  3. In the left sidebar, click Caching, and then click Configuration:

    Cloudflare - Caching - Configuration

  4. On the Caching Configuration page, under Purge Cache, are the cache clearing options:

    Cloudflare - Caching - Configuration - Purge Cache options

    • To clear the entire cache at once, click Purge Everything, and then click Purge Everything again to confirm.
      It can take up to 30 seconds for Cloudflare to finish clearing the cache.
    • To selectively clear the cache, click Custom Purge. In the text box, type the complete URL (or multiple URLs) that you want to clear from the cache, and then click Purge.

More Information

For more information about Cloudflare, please visit https://www.cloudflare.com.

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.

We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.