Rodolph Schwenzner
Jul 23, 2017 · 1 min read

First, that was a great article/tutorial on PWA.

Second, I started implementing the example, only to stop at the point where it seems that service worker is getting registered but none of its events is being triggered. I have worked last year with several examples of service workers. According to all, the only way to successfully implement it is via https (SSL). Back then I looked for many ways to implement it without SSL but there was none (mind you I was only developing locally). Eventually, I used openSSL to create the necessary certificates to get it working. A recent update to google chrome has modified the way self-signed certificates needs to be created for SSL to work. I had to re-create of all the certificate to get these examples to work with chrome again (creating those certificates and getting them to work is another layer of difficulty on its own). Nevertheless, I did get all my previous service workers examples to work again (they only utilized cashing static assets at this point). So far all SW references state clearly that SSL is a must for it to work, even locally!

My only query here, did anyone actually manage to get this article’s sample app to work on http://localhost:3000 using the service worker? In other words did the app load and start offline as it supposed to (with all its assets cached)?