https://ibb.co/BKzmwFT
Here is a screenshot of the 404 report
-
This reply was modified 2 years, 3 months ago by
krysiek.
I’m noticing that your service worker is failing to install on your site. I see an error:
Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope (‘https://wypiekibeaty.com.pl/’) with script (‘https://wypiekibeaty.com.pl/wp.serviceworker’): The script resource is behind a redirect, which is disallowed.
This is because https://wypiekibeaty.com.pl/wp.serviceworker is redirecting to https://wypiekibeaty.com.pl/wp.serviceworker/ which perhaps is something that WP Rocket is doing? Or perhaps RankMath?
In any case, the reason why https://wypiekibeaty.com.pl/wp-content/plugins/pwa/wp-includes/js/workbox-v6.5.3/workbox-core.prod.js would be now 404’ing is because the latest version of the PWA plugin upgrades workbox to 7.0.0 so the new URL is https://wypiekibeaty.com.pl/wp-content/plugins/pwa/wp-includes/js/workbox-v7.0.0/workbox-core.prod.js
Nevertheless, it seems your visitors aren’t able to get the new version installed because of that redirect which is adding a trailing slash to the service worker URL.
Hi
Thanks for the info.
I do have the redirect to the / at the end – that’s true.
So to resolve that isse i just need to disable that one redirect and allow access to the /wp.serviceworker? (that i already did)
Thanks
Krysiek
Additinal question, sicne i stil lsee those errors.
Should all those goes away, once all the users will update it to the new version?
Yes, those errors should go away once the new service worker is installed automatically for your users.
Hi
Unfortunatelly i’m still seeing those. IS there something else i should check ?
wp-content/plugins/pwa/wp-includes/js/workbox-v6.5.3/workbox-window.prod.js
can I just create that path and put new script there ?
I’m not sure. I just tried accessing your site again and I only see that https://wypiekibeaty.com.pl/wp-content/plugins/pwa/wp-includes/js/workbox-v7.0.0/workbox-window.prod.js is being referenced:
<script type="rocketlazyloadscript" data-rocket-type="module">
import { Workbox } from "https:\/\/wypiekibeaty.com.pl\/wp-content\/plugins\/pwa\/wp-includes\/js\/workbox-v7.0.0\/workbox-window.prod.js";
if ( 'serviceWorker' in navigator ) {
window.wp = window.wp || {};
window.wp.serviceWorkerWindow = new Workbox( "https:\/\/wypiekibeaty.com.pl\/wp.serviceworker", {"scope":"\/"} );
window.wp.serviceWorkerWindow.register();
}
</script>
If there are pages that are still attempting to load v6.5.3 instead of v7.0.0, then it seems you still have some cached pages, perhaps by WP Rocket. I would be surprised if it is still holding onto cached pages even now, however. I’m not familiar with how RankMath does 404 detection, so I can’t help with that.