If you have to manually edit portions of your PrestaShop site, there's an alternative CDN implementation method for PrestaShop.
This article will walk you through how to perform a static assets integration, which does not support the use of the StackPath Web Application Firewall (WAF). If you’re looking to maximize security by using our CDN with the WAF, please refer to the CDN & WAF integration guide.
This tutorial assumes a StackPath CDN site is created.
To set up StackPath CDN on PrestaShop, follow these steps:
Log in to your PrestaShop admin panel.
Hover over Advanced Parameters and click Performance.
Under the CCC (Combine, Compress, and Cache) section, enable CCC for the following options:
- Smart cache for CSS
- Minify HTML
Scroll down to the Media servers (use only with CCC) section.
Find the three fields labeled Media server.
Enter your CDN URL in the Media server #1 field.
To ensure you implemented the StackPath CDN 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 to obtain a more detailed report on your CDN implementation status.