Important note

This tutorial assumes you have already created a Pull Zone.

Magento has the ability to utilize CDN Functionality without the need for a 3rd party plugin.

Setting up a CDN using Magento’s native support

    1. Log into the admin panel of your website.
    2. Go to System → Configuration.
    3. Under General select Web option.
    4. Go to Unsecure settings tab.
    5. Follow these setup instructions:
      1. Set the Base URL of your website so that your website domain is in the following format: http://www.mywebsite.com.
      2. Base link URL leave as default: {{unsecure_base_url}}.
      3. Base Skin URL: http://foo.bar.netdna-cdn.com/skin/
      4. Base Media URL: http://foo.bar.netdna-cdn.com/media/
      5. Base Java Script URL: http://foo.bar.netdna-cdn.com/js/
Do not forget to replace “foo.bar.netdna-cdn.com” with your actual CDN URL!
    1. Keep in mind the warning inside this section: “When using CDN, in some cases JavaScript may not run properly if the CDN is not in your subdomain”.
    2. Now that you are officially using a CDN on your website.

NOTE

To ensure you implemented MaxCDN correctly, you can view the source code of any page to confirm that the CDN domain is being used for static assets instead of your origin domain. You can also use tools like pingdom, gtmetrix, webpagetest that can give you more detailed reports on your CDN implementation status.

Important Note
In case you accidentally used the wrong CDN URL for your Magento website, please visit this page to learn how to fix this mistake.