How to Offload Your Server by Using CloudFlare – Cache Everything?


Cloudflare by default only caches the static resources, such as images, audios, documents. If your site does not have dynamic contents or is updated less frequently (e.g. if you don’t care updating guests comments in real time), then you can also cache everything (including the dynamic PHP pages), which certainly offloads your origin server.

The free plan for Cloudflare CDN allows you to add 3 page rules so make sure you use them wisely. For the Pro paid plan, you can add up to 20 page rules. To cache everything, you would first add a page rule, specifying the URL pattern, and select ‘Cache Everything’.

cloudflare-cache-everything-edge-cache-expire-ttl How to Offload Your Server by Using CloudFlare - Cache Everything? cache cloud cloudflare CloudFlare

cloudflare-cache-everything-edge-cache-expire-ttl

The Edge TTL is the time that you want the CloudFlare servers come back to your origin server to check if cached contents/pages need to be updated (re-fetched). The shorter, the better, but for Free Plans, the shortest period is 2 hours while I am on the paid Pro plan, so this settings is improved to 1 hour.

After enabling the ‘Cache Everything’, the cached contents are increased, and it means that the more requests are handled by CloudFlare servers and less requests are forwarded to my own server.

cloudflare-cache-everything How to Offload Your Server by Using CloudFlare - Cache Everything? cache cloud cloudflare CloudFlare

cloudflare-cache-everything

If you expect a large traffic, or if you experience large Deny-DOS attacks, or if you don’t expect updating too often the contents (such as images, static pages), or you don’t care the real time update (updating new contents every 2 hours), then this is actually a great caching method for you!

PS: You might want to by pass other dynamic contents such as wp-admin.

CloudFlare Technology

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
403 words
Last Post: How to Check If One or More Users Are Logged in using Cookie in WordPress?
Next Post: Huawei Honor X2 MediaPad Review - Amazing Phone Tablet!

The Permanent URL is: How to Offload Your Server by Using CloudFlare – Cache Everything?

5 Comments

  1. G Brown

Leave a Reply