Granted my site is pretty small, but speed drastically improved after setting up Cloudflare edge caching:
In this Cloudflare Blog Post titled ‘Caching Anonymous Page Views’ it is outlined that you can cache anonymous page views on their edge servers and bypass any edge caches with certain cookies:
Cloudflare is determined to help website administrators boost the performance of their websites. From today, Cloudflare users on our Business plan will gain a previously Enterprise-only Page Rule option, “Bypass Cache on Cookie”. When used in conjunction with a “Cache Everything” Page Rule, this setting allows for websites to cache the HTML of anonymous page visits without affecting dynamic content.
By caching anonymous page views, Cloudflare is able to help ensure that your origin webserver doesn’t waste time constantly regenerating pages which change rarely. This ultimately allows us to reduce load on your server and reduce load times when users reach your site.
Positive TTL values indicate in seconds how long Cloudflare should cache the asset for: a TTL of
0will cause assets to get cached, but expire immediately (revalidate from origin every time),
-1, or any negative value will instruct Cloudflare not to cache at all.
Testing using httpstat without triggering cookies (anonymous request)
And now with cookies which will bypass the cache (logged in user/commenter):
Look at how much faster download times are when the site is edge-cached! (Note that network transfer speed is misrepresented as server response times) – mind you I’m half way across the world from my origin right now hence the slow transfer.
Great, now I don’t need to pay $200 a month for a CF business plan, just $5 for the worker (and any requests exceeding 10,000,000)
Apologies if this post is short, the keyboard on my 4 month old MacBook is dying 🙁