Question

How to Purge Cache from Cloudflare CDN

  • Posted on August 4, 2022
  • CDN
  • Aaron3ccbe97993907d67a94644beAsked by Aaron

I do have one DO Apps and setup CDN cache already. I did purge cache single url successfully directly from Cloudflare UI before, but failed since today. Anyone can help me?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hi there,

Do you get any errors when you try to purge the cache via Cloudflare?

I believe that you can make use of Cache-Control headers per Cloudflare’s guidelines:

https://support.cloudflare.com/hc/en-us/articles/115003206852-Understanding-Origin-Cache-Control

Also for Static Site components, we set a Cache-Control header automatically and explicitly purge the CDN cache on each app deployment.

Best,

Bobby