In this tutorial, you will learn how to Cloudflare CDN setup for your WordPress website on Google Cloud.
For better performance, your configured should be in a systematically and secure facility for your website.
Benefits of using a CDN
A CDN is a network of globally distributed servers that store and distribute your website’s content. With a CDN configured, your website’s content will load quickly for all users, regardless of their geographic location. Without a CDN, your website is served from a single server, meaning slow load times for international visitors. With a CDN, your website is stored and served from many servers around the world, meaning consistently shorter load times for visitors.
If you don’t like to install your own Secure Sockets Layer certificate, it is possible to use Cloudflare’s SSL service with your CDN. You will have the option to apply this setting in step 3 of this tutorial.
Get more ideas as to the advantages and disadvantages of using Cloudflare’s SSL service with your CDN by clicking here.
There are 6 steps in this tutorial:
- 1. Create a Cloudflare account
- 2. Change domain nameservers
- 3. Configure Cloudflare crypto settings
- 4. Optimize Cloudflare caching settings
- 5. Test website performance
- 6. Additional considerations
1. Create a Cloudflare account
Web browser of your just navigate to the Cloudflare signup page.
On the signup page, choose an email and password to use for your account, and click the Create Account button.
Whenever you will create your account, click the + Add a Site button to configure your website with Cloudflare.
Click another button to ask your DNS records.
Find the FREE option to start with a free account, then click on the Confirm Plan button for the next step.
As on Cloudflare has verified your website’s DNS records, click the regular button.
Copy the two nameservers that Cloudflare support and paste them into Notepad – you will need these in the next steps.
2. Change domain nameservers
Visit the domain name provider where you registered your website’s domain name. Namecheap is used in this example, but there are hundreds of other domain name registrars to choose from.
Once you’ve logged in to your domain name registrar, navigate to the settings page of the domain that you want to configure. Select the Custom DNS option, then paste the two Cloudflare nameservers that we copied from step 1 of this tutorial.
3. Configure Cloudflare SSL settings
Go back to your Cloudflare homepage and click on your website.Click on the Crypto icon at the top of the page to configure your Cloudflare SSL settings.
On the Crypto page, choose the Full (Strict) SSL setting if you already have SSL installed on your website. If you wish to use Cloudflare’s SSL, select the Full SSL setting.
4. Configure Cloudflare caching settings
Next, click on the Caching icon at the top of the page to configure your caching settings.
Fixed your Browser Cache Expiration setting to 1 month, or select Respect Existing Headers if you’ve already configured caching on your origin server pannel.
5. Test website performance
Now that you’ve configured Cloudflare CDN Setup , the next step is to check that it is working properly. In your browser, open a new tab and visit GTMetrix. Then, enter your website’s URL in the search field and click the span style=”background-color: #eee”>Analyze button.
At first, as on the PageSpeed tab, check that the Leverage browser caching criteria has a high score as per expectation.
Next step, navigate to the YSlow tab and check that the Use a Content Delivery Network (CDN) and the Add Expires headers category are both met.
6. Additional considerations
Combining Cloudflare CDN Setup and SSL
Cloudflare provides three individual settings for handling your website’s encryption with SSL. In this triple settings are Flexible SSL, Full SSL, and Full SSL (Strict).
Full SSL (Strict) assist the highest level of SSL security, however, it requires that you setup SSL on your origin server beforehand.
1. Flexible SSL
Flexible Secure Sockets Layer (SSL) is the most easiest setting for configuring Cloudflare’s SSL with your website, but unfortunately does not encrypt the connection between your website’s server and Cloudflare (your website will still show the green padlock).
2. Full SSL
Unlike Flexible SSL, the Full SSL setting provides encryption between your server and Cloudflare. The only drawback is that your connection between your server and Cloudflare isn’t authenticated.
3. Full SSL (Strict)
As on the three available settings, Full SSL (Strict) provides the highest level of security as per comparison. Unlike Full SSL, the Full SSL (Strict) setting ensures than the connection between your website’s server and Cloudflare is authenticated with a signed SSL certificate.
Whatever, if you want to wish your security a bit further, you can use the entire SSL (Strict) setting. This setting requires that you already have SSL configured on your server (with valid certificates).
See More Related Articles :>>>>>