Important Note

This tutorial assumes you have already created a Pull Zone.

OpenCart CDN Integration

  1. Download the CloudCache module from official module web page
  2. Note:

    Do not download the vQmod version, use the module instead or download it from here.

  3. Upload the “admin” and “system” folders from the CloudCache module to the root path of your website.
  4. Go to the admin panel of your OpenCart store and open the modules list on Extensions → Modules.
  5. Click on the “install” button on the right side to install the module.
  6. After the installation is done, list the modules again and go to the “edit” button on the right side of modules list in the CloudCache module row.
  7. Enable the module by selecting the “Enabled” option on the drop-down list.
  8. Enter the Custom Domain or temp URL (e.g in provided text box.
  9. Check which file types you would like the CDN to deliver.
  10. Click on “Save” button to save all changes.
  11. Note:

    Change “” to whatever your temp URL or custom domain is.


    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.

  12. After everything is done and if you don’t see CDN URLs being used in your source code, you should check if opencart is pushing compression and if it does, disable it:
    1. Login to your OpenCart admin Dashboard.
    2. Navigate to System -> Settings.
    3. Next to your store click on Edit button.
    4. Find Server tab.
    5. Find Output Compression Level and set it to 0.
    6. Save setting by hitting Save button.
  13. In some cases you may encounter an error displayed on top of the page (frontend or backend/admin area) pointing out the variable HTTP_IMAGE:
    Notice: Use of undefined constant HTTP_IMAGE – assumed ‘HTTP_IMAGE’ in /system/library/response.php on line 79
    To solve this, you need to open /config.php and add a definition for HTTP_IMAGE on the top of the file, so that resulting file looks like:

                // HTTP
                define('HTTP_SERVER', '');
                define('HTTP_IMAGE', '');
                // HTTPS
                define('HTTPS_SERVER', '');