Cloudflare configuration for Ghost(Pro) blogs

I’ve been using Ghost for a while, but I’m now in the process of moving back over to WordPress.  Whilst I’ve been using Ghost(Pro), I’ve still maintained Cloudflare in front of that directly, to have more control over the caching and security configuration.

One of the main reasons I’ve been using Cloudflare is to cache everything at the Cloudflare edge to increase end user performance.  The below rules set caching on everything other than the Ghost editor and the post preview functionality.

Note: The below was useful for my personal blog where there was very little change from day to day.  If your site changes, especially on the same pages, you’ll need to take care using these rules.

Continue reading “Cloudflare configuration for Ghost(Pro) blogs”