Jekyll Cloudflare Cache Purge

CloudFlare sits in front of my site, caching and providing optimisations to images and so on as hell as taking care of SSL. The caching part is great, but if I deploy to my site and decide to change the style of something, it can take some time before the new version of the page is rendered to the end user.

Enter jekyll-cloudflare-cache-purge. This jekyll plugin triggers a POST to the CloudFlare API once my site builds, purging the cache, and allowing the new version of the site to be picked up and sent to visitors.

Posts