/cloudflare-cachebuster

Azure Function in Go that purges a site's Cloudflare cache.

Primary LanguageGoMIT LicenseMIT

Build Latest Release Go Report Card Go Reference

cloudflare-cachebuster

Azure Function that calls Cloudflare's purge_cache endpoint.

Requires 2 environment variables to be set:

  • CLOUDFLARE_ZONEID: the Zone ID of the cache being purged.
  • CLOUDFLARE_PAT: A Cloudflare PAT with Zone.Cache Purge permissions for the cache's zone.

Deploying to Azure via GitHub Actions

Requires: