The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

hettlage (136) [Avatar] Offline
There are few minor changes which might make it easier to get started with service workers.

  • You could point out which browsers support (or don't support) service workers. There are readers who are using Safari, after all... smilie

  • You mention that you can use localhost for testing, but you might state (more) explicitly that http can be used in this case. (You might also mention that even for localhost the files must be served via http - file:// doesn't seem to work.)

  • It would be helpful if you stated clearly that listing 1.2 is a complete service worker file. You call it a "snippet of code inside the service worker file", and together with the fact that the variable self isn't declared this (erroneously) might suggest to the reader that they cannot use that code for getting their feet wet with service workers.