With the Cloudflare integration, you can send a request to a Cloudflare zone to invalidate asset caches before or after a deployment.

To set up a new integration, click the Integration link on the left hand side of your project, then the New Integration button to get started.

New integration

Choose Cloudflare in the service picker, then enter the appropriate Zone ID and Asset URL Prefix - the URL that should be prefixed to any asset paths from the source repository (such as www.example.org).

Next enter your Email Address and API Key that's used to connect to Cloudflare, then check the Purge Everything option if you want to clear the cache for the zone on every deployment. Otherwise, DeployHQ will just send a request to invalidate only the files that we changed in the deployment.

Cloudflare integration

Choose when to trigger the integration, and choose any servers you wish to trigger it for for, or keep the Trigger integration when any server or group deployed? option checked if you want to trigger for all servers.

Integration scopes

Finally, click Create Integration to finish.

Proudly powered by Katapult. Running on 100% renewable energy.