If you are looking for a quick and easy way to deploy your CDN then look no further. Most of the WP caching plugins are rather complicated and not all features are freely available or even required at all. The new CDN Enabler plugin from KeyCDN is completely free, works with any CDN provider, and you can have your CDN integrated with WordPress in minutes.
- Link assets to load from a CDN
- Set included directories
- Define exclusions
- Enable or disable for HTTPS
- Supports Bedrock
Follow the steps below to integrate your CDN with WordPress.
In your WordPress dashboard click into “Plugins” and then into “Add New.”
Search for “cdn enabler.” Then click on the “Install Now” button. (verify that it says By KeyCDN) underneath the description.
Click on “Activate Plugin.”
Then under “Settings” in WordPress click into “CDN Enabler.”
In the CDN Enabler settings, you will first want to set your CDN URL. I suggest using a CNAME with your domain.
- KeyCDN Example without CNAME: brianjackson-xxxx.kxcdn.com
- MaxCDN Example without CNAME: brian.brianjackson.netdna-cdn.com
- CDN Example with CNAME: cdn.brianjackson.io
By default the “wp-content” and “wp-includes” directories are included. No need to change that.
I add .xml to my excluded extensions because it messes with my sitemap file in my footer.
You can leave relative paths checked and choose whether you need HTTPs or not.
Click “Save Changes” and you should be good to go.
If this tutorial on how to set up a free WordPress CDN plugin was helpful please let me know below!