Cloudflare is a free CDN service which speeds up your website. It caches the heavy resources present on your site and it delivers them to your visitors from servers spread around the globe. In this guide we will present how to configure this service in order to obtain the best results with our themes.
- first create a Cloudflare account – here
- this setup will not be covered by this guide, please check Cloudflare official guide – here
- log into your cloudflare account
- from DNS make sure that the traffic is routed trough Cloudflare only for the areas which are accessible to the site visitors
- on Crypto enable the encryption, this option includes multiple options (full, flexible, strict), check the “help” section present on the page and chose the one which works best for your case
- the Firewall section allows you to set the security level and to set access rules for certain ip’s or countries.
- the Speed section comes with minification options – to avoid any issue please disable the Rocked Loader (beta) feature
- from Caching you can change the cache expiration time and you can purge the files(this will reset the cache and it will fetch a fresh version of those files from your web server)
Note – This guide presents our case and for other situations it may not be optimal. The rest of the settings are left to default, you can explore the Cloudflare documentation for more details about each area.