Purge Cache on Cloudflare
DeployBot can invalidate your Cloudflare cache after each deployment thanks to a new integration, which is currently in Beta. This ensures that Cloudflare servers always have the most recent content.
In the Cloudflare integration we support:
- Purge everything
How to invalidate Cloudflare cache
- First thing would be to enable the Beta features, in the settings menu.
- Then, you can add the integration in the Integrations tab, using your API Key:
- After that, you will be able to trigger the action on the environment settings (you will also need to select the DNS zone):
DeployBot will take care of the rest. After each deployment it will invalidate the entire distribution, making sure that everything it's removed from the cache. Invalidating files ensures that your CDN always serves the latest versions of your files. After the invalidation was initiated by DeployBot you can track its progress in the Cloudflare Console.