Skip to content

Cloudflare Worker that clears all cache in a given zone when called. Designed to be used as a webhook.

License

Notifications You must be signed in to change notification settings

Erisa/cf-cache-clear-worker-webook

Repository files navigation

Clear cache worker webhook

Cloudflare Worker that clears all cache in a given zone when called. Designed to be used as a webhook.

Setup

Cloudflare Workers:

Create API token with this link

and then

wrangler secret put SECRET
wrangler secret put CF_ZONE
wrangler secret put CF_API_KEY
wrangler publish

Or local:

npm i -g miniflare
miniflare -b SECRET=secrethere -b CF_API_KEY=apikeyhere -b CF_ZONE=zoneidhere

Usage

About

Cloudflare Worker that clears all cache in a given zone when called. Designed to be used as a webhook.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages