Skip to content

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

License

Notifications You must be signed in to change notification settings

jidicula/cloudflare-cachebuster

Repository files navigation

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:

About

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

Resources

License

Stars

Watchers

Forks

Sponsor this project