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 the most simple Static Assets Integration. To get the most out of StackPath (WAF and DDoS protection) you will need to use a Full Site Integration
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.