1 minute read

In this blogpost I will show you how you can use Azure CDN to improve the performance of your WordPress site. I’m running WordPress for my blog and have a lot of static content. All my blog post, once written and published will not change and remain the same year after year. This is a lot of static content that could be cached on Azure CDN. The Azure Content Delivery Network (CDN) caches static web content at strategically placed locations to provide maximum throughput for delivering content to users. For a full list of Azure CDN POP locations have a look here.  It really only takes a couple of minutes to deploy, it’s super easy and basically maintains itself once the configuration is done.

To use Azure CDN for your WordPress site you will need to follow these steps:

  1. Install a WordPress plugin that supports Azure CDN like wp-super cache.
  2. Deploy Azure CDN in your Azure subscription
  3. Configure the WordPress plugin to use Azure CDN

1) Install WP-super Cache

2) Deploy Azure CDN in your Azure subscription

Create CDN profile:  From NEW, search for CDN

cdn

Create CDN Endpoint:  From the CDN profile, click “+Endpoint” to add an endpoint, choose the web site for Origin hostname, e.g.

cdn1

Because I like things to be nice and clean all the way, I registered a custom domain name too so that all my cached files would be available through a custom name: cdn.mscloud.be. You will then need to add this custom name to your DNS provider

cdnconfigcustomdomain

image

Once Azure CDN is deployed you can manage and see some reports here https://cdn.windowsazure.com/

3) Configure the WordPress plugin to use Azure CDN

The last step is to tell our WordPress site to use Azure CDN. If you have WP Super Cache plugin installed on your WordPress site, you can use WP Super Cache to integrate with Azure CDN:

Edit from WP Super Cache “Settings”, select “CDN” tab, put the URL of Azure CDN endpoint in “Off site URL”, save the change.

enablecdn

That’s it! As you can see it is really easy and straight forward to use Azure CDN for your WordPress website!

 

Hope this helps,

Alexandre

Leave a comment