Service worker not working in multisite
-
Hi,
I have a multisite setup with my PWA as a sub directory site located at https://www.website.com/app/
The manifest and service worker files are created in the web root directory but the urls being output in the code include the sub directory For example:
src='https://www.website.com/app/pwa-register-sw-2.js?ver=1.7.61' id='pwa-main-script-js'
Also inside that file, the url to the sw is coded like:
var swsource = "https://www.website.com/app/pwa-sw-2.js";
The result is a 404 error on the service worker files.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Service worker not working in multisite’ is closed to new replies.