{{this.config.domain}}/sw.js
. For detailed instructions, choose your web server or system below:
If you can, simply upload the Service Worker script (sw.js
) to your website's root folder.
Option 1: Rewrite the request url for the Service Worker to the actual location:
Option 2: Customize the Service Workers registration path by still giving it root scope
/etc/nginx/sites-available/{{this.config.domain}}
) and not in the global config.
Option 1: Rewrite the request url for the Service Worker to the actual location:
Option 2: Customize the Service Workers registration path by still giving it root scope
Please follow the steps to upload the Service Worker script (sw.js
):
For more information about the File Manager, please visit the related Plesk documentation.