• Resolved saltmediadevon

    (@saltmediadevon)


    Hi, we used to use SuerPWA but we had some issues with the last two updates so we’ve now discontinued using it on all our wordpress installs.

    We are getting 100’s of the below errors on our server logs every hour.

    We removed the plugin over 1 month ago.

    xx.xxx.xx.xx 404 GET /superpwa-sw.js HTTP/1.0

Viewing 1 replies (of 1 total)
  • Hello @saltmediadevon

    Sorry to hear about it. Can you please let me know the issue which you have faced so that I can look more into it.

    The 404 error you have noticed is because some users whos browsers already registered the service worker is checking for whether an update of the SW is available or not. As you have already removed the plugin this logs as 404 and the service worker will be automatically removed from those users. If you want to unregister the service worker without causing any 404 logs, add the below script to your website. It will unregister the service worker when user visits the website.

    <script>
    if ('serviceWorker' in navigator) {
    
        navigator.serviceWorker.getRegistrations().then(function(registrations) {
    
        for(let registration of registrations) {
    
                registration.unregister()
    
        }}).catch(function(err) {
    
            console.log('Service Worker registration failed: ', err);
    
        });
    }
    </script>
Viewing 1 replies (of 1 total)

The topic ‘Uninstalled – multiple errors in server log files’ is closed to new replies.