With the latest changes to Google Panda algorithm, it’s now mandatory for us to have our blog’s page loading speed super fast. There are numerous factors which affects page loading time including .htaccess method.
In this tutorial we will go over why you should use Content Delivery Network (CDN) and how to setup MaxCDN correctly on your WordPress site? We will setup MaxCDN with WP Super Cache Plugin which is complete WordPress CDN solution.
A CDN is a service that can help the static content on your site (images, CSS, Javascript) load much more quickly from different regions around the world. Without CDN your contents just loads from your web hosting company. By default, CDN serves all the static assets located in your wp-content
folder from CDN.
In order to setup all things right we will touch 3 systems:
- MaxCDN control panel
- cPanel Advanced Zone Setting
- WP Super Cache – CDN setting
Let’s get started on how to setup MaxCDN correctly
Step-1
Login to MaxCDN Control Panel.
Step-2
Once login to MaxCDN, go to top-right corner
of admin panel and click on ZONES
.
Step-3
Click on Create Pull Zone
Step-4
Provide all required below information and click Create
.
- Pull Zone Name: free form text
- Origin Server URL: your blog URL including http:// (sample: https://crunchify.com or https://crunchify.com)
- Label: free form text
You should see confirmation message saying your pull zone creation is successful.
Step-5
Go to Settings Tab
and enter 4 custom Domains. Mainly cdn.yourblog.com
and same way cdn1
, cdn2
, cdn3
. We need these custom domains for setting up WP Super Cache plugin correctly which we will look in below steps.
Step-6
Under Cache Setting Secion
set both values to 7 days
.
Step-7
Under Origin Information Section
Enable origin IP resolution and provide correct IP address from your cPanel dynamic / static IP
.
Step-8
Under Edge Setting option set option mentioned below.
By performing above tasks you are all set @MaxCDN side. Now let’s perform changes at your Hosting Provider side.
Step-9
Go to cPanel
-> Domains
-> Advanced DNS Zone Editor
Step-10
Add new CNAME
zone records. Your CNAME value would the same which you got in above step-5
.
Repeat the same step for cdn1
, cdn2
and cdn3
.
Step-11
Now open your WordPress Admin console and open WP Super Cache
setting page. Go to CDN
tab.
Extra tips:
Follow tutorial if you want to Tune your WP Super Cache for all other options.
Clean your cache and you are all set.
How to test now?
- Load your blog
- Right click on content
- Click on Inspect Element
- Go to Network tab
- Reload your page
- Check 1st column
- You should see result like below and your new CDN urls