0

I'm running Cloudflare in front of a web application, and often need to manually purge the Cloudflare cache after pushing in order to test changes I've made. Since I'm currently using GitHub Actions for my CI/CD pipeline, I could stop doing this manually altogether and use one of the many third-party Actions to purge the cache after every push, but this seems like it would reduce the efficacy of the cache and cause users to feel the impact.

Is there a (presumably programmatic) way to purge the Cloudflare cache for modified files only, either using GitHub Actions or otherwise? It seems that this should be technically feasible since Git already knows which files have been modified and Cloudflare does allow cache invalidation via URLs on the free tier (although not with wildcards).

Hashim Aziz
  • 4,074
  • 5
  • 38
  • 68

0 Answers0