Call Us! 1-800-383-5193
Call Us! 1-800-383-5193
Call Us! 1-800-383-5193

Need Help?

Emergency Response Time custom

Our experts have had an average response time of 11.06 minutes in March 2021 to fix urgent issues.

We will keep your servers stable, secure and fast at all times for one fixed price.

Enable CDN in Prestashop and Fix common errors

by | Apr 18, 2021

Wondering how to enable CDN in Prestashop? We can help you.

PrestaShop is an open-source eCommerce platform that allows us to run our online store either via self-hosting or in the cloud.

At times we may find Prestashop slowing down, we can use CDN to speed it up

Here at Bobcares, we handle requests from our customers to enable CDN in Prestashop as a part of Server Management Services.

Today let’s see how our Support Engineers do this for our customers.

How to Enable CDN in PrestaShop

Now we will see the steps that our Support Engineers follow to enable CDN

Integrate CDN with PrestaShop

Firstly, we must take a backup of files and database. If we wish to integrate a CDN service on https:// pages also, then we must use the CDN domain with SSL enabled.
If our website embeds custom fonts, then we must enable CORS first. Also, ensure that the CDN domain is ready to use.

Steps for Enabling CDN in PrestaShop

1. First, log in to the PrestaShop admin panel.

2. Then go to Advanced Parameters and take Performance.

3. Now, we must configure CCC (Combine, Compress, and Cache).

Smart Cache for CSS: Yes
Smart Cache for JavaScript: Yes

4. After that click Save.

5. Finally, we must configure Media servers (use only with CCC) and click Save.

Setting a media server URL in PrestaShop will improve static content delivery, website performance, GTMetrix as images, CSS, and JS files will be serviced via a cookie-free domain.

View HTML source code of web pages to verify that we are using CDN, we should see the source attribute of our images, CSS, JavaScript, etc. beginning with the CDN domain.
If we do not see our CDN domain in the source code of our web pages, then the website may be using any cache plugin/mechanism.

We can clear the cache and check again. Next, we will see the common error that we may face while enabling CDN.

Common error faced

While configuring the PrestaShop Media Server URL, many customers face an issue when having this setup while using SSL certificate for their stores.

Cause for the error

The reason for the issue is that usually the SSL is valid for their main domain www/ and does not cover the Media Server subdomain used for cookie-free URL.

How to fix it

Following are the steps to fix the above error:

1. Purchase a wildcard SSL to cover the subdomains as well *

2. Activate Cloudflare CDN using their Universel SSL to convert subdomain.

3. Processing Static Content via Shared SSL and mod_userdir

Most hosting providers support the Apache mod_userdir which allows to access the account via the server hostname using a URL such as http://hostname/~username.

Additionally, most hosting providers have valid and trusted SSL certificate installed for the server hostname, usually advertised as Shared SSL.

This Shared SSL can process static content via a cookie-free domain and still keep it secure via the https.

Unfortunately, PrestaShop does not accept URLs including ‘~’ character for the media server settings. However, we can set this with just a quick trick.

The steps to follow are given below:

1. Before changing any settings on PrestaShop installation, ensure that the account is accessible via mod_userdir and a valid SSL is available on the hosting server.

2. Log in to the PrestaShop admin panel and navigate to the Performance section under the Advanced Parameters menu.

enable cdn in prestashop

3. From there take Media Servers and input any dummy URL such as

[Need assistance? We can help you]


In short, we saw how our Support Techs enable CDN on PrestaShop for our customers.


Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.


var google_conversion_label = "owonCMyG5nEQ0aD71QM";


Submit a Comment

Your email address will not be published. Required fields are marked *

Privacy Preference Center


Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]


Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid


Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie


These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.