Skip to content

Clearing the Cloudflare cache

Learn how to clear the Cloudflare cache for your account to fetch the most recent version of files on your website.

Clearing the Cloudflare cache ensures that the latest version of your website files, such as updated CSS or JavaScript, is served to visitors. You can clear the entire cache or remove specific files selectively.

Important: Clearing the cache forces Cloudflare to rebuild it, which may temporarily reduce site performance.

For instructions on activating Cloudflare, see the setup guide. For detailed Cloudflare configuration, consult the Cloudflare documentation.

  1. Log in to your Cloudflare account.
  2. In the left sidebar, click Websites, then select your domain (e.g., example.com). Cloudflare - Select domain
  3. In the left sidebar, click Caching, then Configuration. Cloudflare - Caching - Configuration
  4. Under Purge Cache, you’ll see the cache clearing options. Cloudflare - Caching - Configuration - Purge Cache options
  • Click Purge Everything, then click Purge Everything again to confirm.
  • Note: It may take up to 30 seconds for the cache to clear completely.
  • Click Custom Purge.
  • Enter the complete URL(s) of the files you want to remove from the cache.
  • Click Purge to clear the selected files.

For additional guidance, visit https://www.cloudflare.com.