When setting up Speed Kit through our installation wizard you will be asked to copy the service worker ("sw.js") as well as a code snippet into your site. This article explains where Prestashop users have to paste these two files.
First, you have to be logged into your Plesk account.
To save the Service Worker (sw.js), navigate to:
Domains -> Your Domain -> File Manager -> [your root directory] (usually "httpdocs")
... and save the file there.
To save the code snippet, navigate to:
Domains -> Your Domain -> File Manager -> [your root directory] (usually "httpdocs") -> themes -> [your theme] (usually "classic") -> assets -> js -> open custom.js
Next, remove the first and last line of the code given in the wizard (the <script> and </script> tag), and copy the rest of the code into your custom.js file.
This video shows you these steps in practice:
Important note:
Please alter your blacklist according to your needs in such a way, that every website containing user-specific (dynamic) content is blacklisted.
Otherwise, these sites will be served via Speed Kit's caching infrastructure, thus resulting in recurring users receiving always the anonymous version of the particular site.
This can be done like so:
blacklist: [
{
pathname: [
"/Backoffice",
"/cart",
"/account"
]
}
]
More information about possible configuration parameters can be found here on our website: https://www.baqend.com/speed-kit/latest/#Configuration