Cloudflare Integration

Auto-Purge Cache
On Every Deploy

Automatically clear your Cloudflare cache after every deployment. Purge everything or just the files that changed — your visitors always see the latest version.

Visitors See Stale Content After Deploys

You deploy new code but visitors still see the old version because Cloudflare is serving cached assets.

Deploy New code live CDN still serves old files Visitors see stale content Manual cache purge needed Easy to forget Visitors See old version Stale cache breaks the deployment

Deploying new code without clearing the CDN cache means visitors continue to see the old version of your site.

Cache Cleared Automatically After Every Deploy

DeployHQ purges your Cloudflare cache automatically. Choose to clear everything or just updated files.

Deploy New code shipped DeployHQ Deploy + Purge Cloudflare Cache Website Fresh! ✓ Cache purged automatically Automatic!

How It Works

Connect Cloudflare to DeployHQ in minutes.

1
Key icon

Get Your API Key

Obtain the Global API Key from your Cloudflare dashboard.

2
Link icon

Configure Zone

Add the API key, Zone ID, and asset URL prefix to your DeployHQ project.

3
Check icon

Deploy and Purge

Every deployment automatically clears your Cloudflare cache. Visitors see fresh content immediately.

Why Use the Cloudflare Integration

Never serve stale content again after a deployment.

Zap icon

Automatic Cache Purge

Your Cloudflare cache is cleared with every deployment. No manual steps, no forgotten purges.

Cloud icon

Full or Selective Purge

Choose to purge your entire cache or only the files that changed in the deployment.

Shield icon

R2 Support

Also supports Cloudflare R2 as a deployment target. Publish assets directly to R2 buckets.

Check icon

Quick Setup

Just add your API key and Zone ID. Up and running in under five minutes.

Getting Started

Auto-purge Cloudflare in minutes

Check mark

Get Your Cloudflare API Key

Obtain the Global API Key from your Cloudflare dashboard account settings.

Check mark

Configure the Integration

Add the API key, your Zone ID, and the asset URL prefix to your DeployHQ project.

Check mark

Deploy Fresh Content

Every deployment clears the cache automatically. Visitors always see your latest changes.

Read the documentation →
CLOUDFLARE CACHE PURGE FLOW deploy Files deployed to server Done Purging Cloudflare cache... cache 47 files purged successfully ✓ Visitors see fresh content

Ready to auto-purge your Cloudflare cache?

Connect Cloudflare to DeployHQ and ensure visitors always see your latest content.

10-day free trial • No setup fees • Cancel anytime

Get started today for just $9/month

That's unlimited deployments and 3 projects.

Start your free 10 day trial