Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 644 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 644 Bytes

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