nuxt-community / pwa-template

PWA template for vue-cli based on the starter template
MIT License
133 stars 12 forks source link

ServiceWorker doesn't serve application when offline #2

Closed buhrmi closed 7 years ago

buhrmi commented 7 years ago

Hello,

When running this and visiting the website while online, the service worker is installed just fine. But when visiting the site while being offline, the service worker does not serve the application. Maybe I'm missing something, but shouldn't one benefit of service workers be that the application is available even though the user is offline?

This question is available on Nuxt.js community (#c1)
pi0 commented 7 years ago

Hi, Yes it should be able serving offline. I think that's because you are not testing production version over HTTPS.

lewebsimple commented 7 years ago

I can confirm the if works offline OOTB on heroku using HTTPS, while HTTP doesn't work.