SuperPWA / super-progressive-web-apps

SuperPWA helps to convert your WordPress website into Progressive Web Apps instantly. PWA (Progressive Web Apps) demo at : https://superpwa.com and Plugin :
https://wordpress.org/plugins/super-progressive-web-apps/
GNU General Public License v2.0
382 stars 82 forks source link

Uncaught (in promise) TypeError: Failed to update a ServiceWorker: Not found #50

Closed Pidl65 closed 6 years ago

Pidl65 commented 6 years ago

Hello,

I'm getting this error in Chrome, I don't know what to do about it. Could be related to the fact that some images are hosted on a cloud platform and origin is not allowed, but honestly, I don't know. Do you know how I can fix this ? Thank!

https://www.mal-au-dos.be/

josevarghese commented 6 years ago

Hello @Pidl65

Can you please change the Offline page within the SuperPWA settings page to any other page?

Pidl65 commented 6 years ago

Changed to /contact/

On Mon, Jun 25, 2018 at 1:39 PM Jose Varghese notifications@github.com wrote:

Hello @Pidl65 https://github.com/Pidl65

Can you please change the Offline page within the SuperPWA settings page to any other page?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/50#issuecomment-399922243, or mute the thread https://github.com/notifications/unsubscribe-auth/Amr7f-r69UX7WqI2Z3UID6bxy2jPAyevks5uAMv_gaJpZM4U18zE .

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

josevarghese commented 6 years ago

Awesome! Now your PWA scores 91/100 on Lighthouse test

Can you please clear the browsing data upon your browser and check the console again. I cannot notice any error related to service worker now.

Pidl65 commented 6 years ago

That's confusing, because I still get errors in Chrome and running lighthouse tells me it's not registering a service.worker

spwa1 spwa2

josevarghese commented 6 years ago

That's strange! I tried the same upon another desktop and cannot even notice any error that you mentioned. LightHouse again score 91/100 Report here

Can you please confirm the browser, OS and page at which you noticed the error. Also have you cleared the browsing data and relaunch the browser before checking the console?

Pidl65 commented 6 years ago

Yes, absolutely. I also tried on an other desktop with same (in promise) Typeerror: Failed to update a ServiceWorker: Not Found

Tested on:

MacBook pro High Sierra Chrome + FireFox MacBook pro High Sierra Chrome MacBook pro High Sierra Safari gives e different error message

Like the service worker did not register

[image: image.png]

On Mon, Jun 25, 2018 at 2:24 PM Jose Varghese notifications@github.com wrote:

That's strange! I tried the same upon another desktop and cannot even notice any error that you mentioned. LightHouse again score 91/100 Report here https://builder-dot-lighthouse-ci.appspot.com/report.1529929045941.html#pwa

Can you please confirm the browser, OS and page at which you noticed the error. Also have you cleared the browsing data and relaunch the browser before checking the console?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/50#issuecomment-399933028, or mute the thread https://github.com/notifications/unsubscribe-auth/Amr7f9Ce2nJc3Z1YSZlgh_S6JjC4Y9vkks5uANZogaJpZM4U18zE .

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

Pidl65 commented 6 years ago

I'm still seeing old values here, so you're probably right, I need to figrue out how to flush that one

[image: image.png]

On Mon, Jun 25, 2018 at 2:33 PM Giuseppe De Luca pino.dl@gmail.com wrote:

Yes, absolutely. I also tried on an other desktop with same (in promise) Typeerror: Failed to update a ServiceWorker: Not Found

Tested on:

MacBook pro High Sierra Chrome + FireFox MacBook pro High Sierra Chrome MacBook pro High Sierra Safari gives e different error message

Like the service worker did not register

[image: image.png]

On Mon, Jun 25, 2018 at 2:24 PM Jose Varghese notifications@github.com wrote:

That's strange! I tried the same upon another desktop and cannot even notice any error that you mentioned. LightHouse again score 91/100 Report here https://builder-dot-lighthouse-ci.appspot.com/report.1529929045941.html#pwa

Can you please confirm the browser, OS and page at which you noticed the error. Also have you cleared the browsing data and relaunch the browser before checking the console?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/50#issuecomment-399933028, or mute the thread https://github.com/notifications/unsubscribe-auth/Amr7f9Ce2nJc3Z1YSZlgh_S6JjC4Y9vkks5uANZogaJpZM4U18zE .

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

josevarghese commented 6 years ago

Can you please clear the browsing data and let me know how it turns out?

Pidl65 commented 6 years ago

I have. It seems to be cached at some other level which explains why I see the error on multiple devices/browsers I'm digging into the server settings and cache pllugins settings

If you just call https://www.mal-au-dos.be/superpwa-sw.js?a=1, the values are correct

I'll keep you updated, thanks!

On Mon, Jun 25, 2018 at 2:55 PM Jose Varghese notifications@github.com wrote:

Can you please clear the browsing data and let me know how it turns out?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/50#issuecomment-399941646, or mute the thread https://github.com/notifications/unsubscribe-auth/Amr7f-bVWB_c-bOurd3914EgVH5Dh569ks5uAN23gaJpZM4U18zE .

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

josevarghese commented 6 years ago

Yes! Most probably it may due to any caching settings. Can you clear the cache of WP Rocket plugin and on Cloudflare ?

Pidl65 commented 6 years ago

I'm trying to clear cache & disable https://www.mal-au-dos.be/superpwa-sw.js from both wp-rocket & clouflare Also reduced browser caching for js files in .htaccess to 1 second Nothing's working, this is driving me nuts ;-)

On Mon, Jun 25, 2018 at 3:12 PM Jose Varghese notifications@github.com wrote:

Yes! Most probably it may due to any caching settings. Can you clear the cache of WP Rocket plugin and on Cloudflare ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/50#issuecomment-399946582, or mute the thread https://github.com/notifications/unsubscribe-auth/Amr7f-5jGfUNdhiB0fGIoz3oJCeOtpxYks5uAOGpgaJpZM4U18zE .

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

Pidl65 commented 6 years ago

Got it!

Passed the lighthouse audit too, with an error, but well, it's working ;-)

[image: image.png]

Thanks!

On Mon, Jun 25, 2018 at 3:25 PM Giuseppe De Luca pino.dl@gmail.com wrote:

I'm trying to clear cache & disable https://www.mal-au-dos.be/superpwa-sw.js from both wp-rocket & clouflare Also reduced browser caching for js files in .htaccess to 1 second Nothing's working, this is driving me nuts ;-)

On Mon, Jun 25, 2018 at 3:12 PM Jose Varghese notifications@github.com wrote:

Yes! Most probably it may due to any caching settings. Can you clear the cache of WP Rocket plugin and on Cloudflare ?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SuperPWA/Super-Progressive-Web-Apps/issues/50#issuecomment-399946582, or mute the thread https://github.com/notifications/unsubscribe-auth/Amr7f-5jGfUNdhiB0fGIoz3oJCeOtpxYks5uAOGpgaJpZM4U18zE .

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

--

Giuseppe De Luca

Search Engine Marketing Services

pino.dl@gmail.com | +32. 479.59.38.91 | http://be.linkedin.com/in/pinodeluca

josevarghese commented 6 years ago

Awesome @Pidl65 !!

Can you share the screenshot of the error that you're noticing now.

Pidl65 commented 6 years ago

lighthouse

It was that, but I just tried again& I get a 100 score and the error msg has gone!

josevarghese commented 6 years ago

Awesome! Hope our plugin helped to build a Super PWA for you.