Guides
What is Purge Cache?
Learn about the purge cache feature and how to use it
Purge Cache is a feature that allows you to remove cached content from Cloudflare. When you make changes to your website (such as updating content, changing CSS, or JavaScript files), Cloudflare may still serve the old cached version. With purge cache, you can force Cloudflare to fetch the latest version from your origin server.
When to Use Purge Cache
- • After making website content changes that need to be visible immediately
- • After updating CSS or JavaScript files that need to be applied right away
- • When you want to ensure visitors see the latest version of your website
How to Purge Cache for a Single Zone
Step-by-step guide to purge cache on one zone
Purge Cache Steps
- Open Zone Card
On the Zones page, find the zone card for which you want to purge cache
- Click Three Dots Menu
Click the three dots menu icon (⋯) located at the top right corner of the zone card
- Select Purge Cache
From the dropdown menu that appears, click the "Purge Cache" option
- Choose Method and Purge
Select the purge method you want (Purge Everything or Purge by Prefix), then click the "Purge Cache" button to start the process
How to Bulk Purge Cache
Guide to purge cache on multiple zones at once
Bulk Purge Cache Steps
- Click Select Button
On the Zones page, click the "Select" button located at the top left to enter selection mode
- Select Zones
Select the zones you want to purge cache for by clicking the checkbox on the zone cards. You can select multiple zones at once
- Click Bulk Action
After selecting zones, a "Bulk Action" button will appear in the floating search bar on the right side. Click that button
- Select Bulk Purge Cache
From the bulk action menu that appears, click the "Bulk Purge Cache" option
- Choose Method and Purge
Select one of the available purge methods (Purge Everything or Purge by Prefix), then click the "Purge Zone" button to start purging cache for all selected zones
Available Purge Cache Methods
- • Purge Everything:Removes all cache for the selected zones. Use this method if you want to ensure all content is re-cached from the origin server
- • Purge by Prefix:Removes cache only for URLs that start with a specific prefix. Use this method if you only want to remove cache for a specific part of your website (for example, all files in the /css/ or /js/ folder)