
What is Cloudflare?
Cloudflare is a web service that makes websites faster and more secure. It offers a CDN (content delivery network) service, combined with optimization, security & DNS record management features.
Why should I setup Cloudflare on my website?
Cloudflare will make your website load significantly faster for free!
How to setup Cloudflare
- Create a free Cloudflare account
- Add your website
- Wait for Cloudflare to scan your DNS records
- Continue Setup
- Make sure Cloudflare detected all of your current DNS records by checking them (mine were managed on Namecheap in this example), if not add the missing ones
- Once you have verified all your DNS records are in Cloudflare, click I’ve added all missing records, continue
- Choose the Free plan (unless of course for some reason you need a premium plan), for Performance choose “CDN + full optimizations (bleeding edge speed)” and leave the other settings as is, like in the following screenshot:
- Click Continue
- Update your name servers to point to Cloudflare
- In Namecheap I do this by clicking on “Transfer DNS to Webhost”, the entering Cloudflare’s name servers and clicking “Save Changes”
- Now in Cloudflare click “I’ve updated my nameservers, continue”
- That’s it, you’re done! Now just make sure that when your site switches over to Cloudflare your site still functions properly. If it has any issues you tweak the performance settings until you get your site working properly again. You want to find the combination of settings that maximizes performance, but doesn’t cause any issues with your website’s functionality.
NOTE: Since your website is now using a CDN, you’ll need to click on “Purge cache” whenever you make updates to your images, CSS or JavaScript files if you want the updates to be reflected on your website right away. Cloudflare has an awesome feature called “Development Mode” which you can turn on and it will temporarily disable caching so you don’t have to constantly Purge the cache when you’re making a lot of changes to your website. It will even automatically switch off after three hours if you forget to turn it back off when you’re done working on your website.
I have used Cloudflare for my blog but the cloudflare cache caused some and for that reason I’ve stopped using it.
I’ve found that you may want to disable the Rocket Loader feature. While it increases technical load time, on many sites utilizing a lot of JavaScript it slows down the user load time significantly, which isn’t worth the trade off.
Thanks for the tip and the great step-by-step guide! I’ll give it a go. Have you found any other things to fine-tune since the last comment or discovered any cons (like privacy or google analytics issues)?
Is the better option to speed up my website, Thanks for sharing!!
great really works and speed up my website