SuperPWA 2.0 : Service worker not really generated
-
Hello,
i’ve updated the plugin from 1.9 to 2.0, on the page superpwa -> settings. it show “Service worker generated successfully”, but when i click the url, the file got 404 not found.
The page I need help with: [log in to see the link]
-
Hello @ariestwn,
Thanks for upgrading, however that unfortunate. The core reason is that WordPress isn’t loaded when the service worker is requested because of the server config.
– I noticed you were on NGINX, is it NGINX on Apache?
– Does it happen only for the service worker or is it the same for both service worker and manifest?Looking forward to your feedback.
Hi @ariestwn,
Adding a bit more to Arun’s reply.
Can you please deactivate the OneSignal plugin and try the same.
IE; As first deactivate the OneSignal plugin, After deactivation check whether the service worker link within our plugins Status section, can it be seen now without any 404 error? If you can see the service worker file, it will be mostly because of any security plugins blocking the .php file extensions for the earlier SW file.
Looking forward to hearing your thoughts.
same issue here
service worker and manifest fileyep I’m seeing this also, both service worker and manifest file not generated. Not using OneSignal plugin, and am on shared hosting LAMP.
yup same here not using OneSignal
I rollback to
1.9working fine
2.0causes the issue.-
This reply was modified 7 years, 1 month ago by
Santhosh veer.
@worldfacts @androweb Please do open a new thread with your respective website URL, so that we can look more specifically over it.
@josevarghese Done
Hi @arunbasillal
thanks for replying. i think the problem is not caused by web server. yes i’m running my website on nginx.@josevarghese
Thankyou for replying, before the problem solved. i installed older version of the plugin 1.9. and i deactivate the latest version of the plugin 2.0 until my ticket got replied you guys.after reading your reply, i deactivate the onesignal plugin and older version of superpwa. and then activate latest version of the plugin. On this case, service worker is run perfectly. after that i activate the onesignal plugin, set the superpwa manifest. and the problem was solved completely.
but, why the file OneSignalSDKWorker.js.php show cacheName as superpwa-1.9 ?
but, why the file OneSignalSDKWorker.js.php show cacheName as superpwa-1.9 ?
I think a cached
OneSignalSDKUpdater.js.phpfile is serving from your server. Can you please flush the cache upon the server? (If you are using Cloudflare, don’t forget to clear the cache from it too)Looking forward.
and yup, after deleting the cache from server. the service worker return 404 again. note: i only run the plugin superpwa. the plugin from onesignal is deactivate.
Can you please let me know whether you are using any security plugins over the website?
no, i’m not using any security plugins.
Hello @ariestwn
I just checked your website, I suppose SuperPWA is deactivated for now?
I couldn’t tell if it was the same issue. Can you try this solution and see if it works for you as well? – https://wordpress.org/support/topic/2-0-service-worker-and-manifest-file-not-generated/#post-11034018
Looking forward to your feedback.
I have tried it a few hours ago. and not change anything. if it was the problem from our server. then why the older version of the pluggin work perfectly ?
-
This reply was modified 7 years, 1 month ago by
The topic ‘SuperPWA 2.0 : Service worker not really generated’ is closed to new replies.