Purge Cloudflare cache after deploy on Netlify

Netlify is a great service with a fast CDN, but if you want to proxy your site though Cloudflare and set up a cache and optimizations there you can do that too. I usually achieve faster speeds with the CF cache enabled, so if you need more speed you should try it.

But doubling up has it's drawbacks. On a deploy CF serves still the cached files to the browser even when they changed in the meantime.

This post was written about 2 years ago.

If you liked this post tweet about it or follow me on Twitter for more content like this!