WordPress CDN Integration with WP Super Cache

This article supports you on how to integrate our CDN into WordPress with the WP Super Cache plugin.

  1. It is recommended to backup your WordPress site and database
  2. Installation of the WP Super Cache plugin (there are two options to accomplish this)
    • Download the WP Super Cache plugin.
    • Login to your WordPress administration dashboard.
    • Browse to Plugins and click on “Add New”.
    • Click on the Upload link below the title “Install Plugins”.
    • Click on the “Choose File” button and browse to the WP Super Cache plugin you have downloaded.
    • Click on the “Install Now” button in order to install the extension.
    • Click on “Activate” to enable the plugin.

    OR

    • Log into your WordPress administration dashboard.
    • Click on the Search link below the title “Install Plugin”.
    • Enter WP Super Cache in the input and click on “Search Plugins”.
    • Press the “Select Install” now.
    • Click on Activate to enable the plugin.
  3. Click on “Settings” in the left navigation bar and select “WP Super Cache”
  4. Select the tab “CDN”
  5. Check “Enable CDN Support”.
  6. Enter your KeyCDN Zone URL in the field “Off-site URL”.
  7. Check “Skip https URLs to avoid mixed content errors” if you don’t enable shared or custom SSL in your zone settings.
    WP Super Cache
  8. Click “Save Changes”.

KeyCDN and WP Super Cache also work with a wide range of other plugins such as WooCommerce.

To verify that the plugin is properly implemented, view the page source of your website. If your URL paths are showing the CNAME or Zone URL then you have successfully integrated the CDN into your website.

31 Comments

  1. Tradeedv

    My page speed increased from 4 seconds to 26 seconds. Whats wrong? While using keycdn my page is incredabile slow.

  2. Hasibul Kabir

    I don’t wanna use super cache or w3 cache. Because i’m using wp fastest cache premium. How can i use keycdn?

  3. Rehan Kashan

    hello sir with using CDN i am afraid about my website Ranking and indexing please tell me what rule i should use under zone robots.txt file i do not now how to block cdn files indexing ?

    1. Cody

      Hi Michael, that is correct. If you have the WP Super Cache plugin configured to integrate with the CDN then you do not need to use CDN enabler.

  4. Shalin Tejpal Jain

    Hi.. If I use WP Super Cache, can I use CDN Enabler plugin for CDN purposes (Amazon Cloudfront) or is it advisable to use WP Super Cache’s in-built CDN configuration.

      1. Junky

        Thanks Cody – very rapid response (maybe even better than the CDN!)

        My question is how will the files be cached? is it done by keycdn itself? no relation to supercache at all?

  5. Mark H

    Oh, one more thing… can I use my zonealias as my off-site URL? (enabled LE ssl for zonealias) And does THAT need to be http or https?

      1. Mark H

        Thanks @CodyArsenault:disqus. I just set it all up a few hours ago, but GTMetrix says it hasn’t cached static elements. And has pretty much the same scores as before cdn :/ Any tips?

        1. Cody

          I assume this is in regards to this domain: https://frostynova.com/ GTmetrix is reporting that third-party domain resources you are loading from your site are not using a CDN. However I checked your site and can confirm that the CDN is being used to deliver your static assets.

          1. Cody

            Correct, nothing further can be done for the third-party resources your site is loading. Unless there is a way to load those resources directly from your domain (e.g. download the asset and host it yourself).

  6. LAM

    Every time I enter my keycdn url for my pull zone, and the click “enable cdn support” in the Super Cache plugin setting, my wordpress site (medimagery.com/news) goes back to the stone ages. I mean, all the images are lost and the text is all flush left on a white background. When I disable the option, everything returns to normal. Do you know what is going on?

  7. Jeroen

    Hey guys,

    Ive been trying to deploy KeyCDN through super cache on our site https://storyteq.com.
    Sadly im running into some bugs. For example, the pagebuilder of our wp-theme, theme X, wont load anymore when the CDN is enabled. I tried adding /x/#/ to the exclude substring bar since those are always present when the page builder is loaded, but it just wont load.

    Also, my menu bar wont stick to the top of the page anymore.

    Now im kinda in the dark as how to approach these issues. Other than that the CDN works great!

    I tried ignoring caches etc on the CDN side, setting time to 0 etc. Any idea what else I can try?

      1. Jeroen

        Thanks for the reply!
        Im currently also talking to the theme devs – hoping we can figure out a fix that way.
        If that fails I will give CDN enabler a try.
        Thanks!

Leave A Comment?