I'll post all this to stackoverflow too. (But I'l...
# javascript
p
I'll post all this to stackoverflow too. (But I'll probably get my hand slapped)
m
It appears manifest has been deprecated... https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html/manifest I haven't worked much with service workers but this medium article seems to answer the problem... all be it ..not an easy answer... https://medium.com/@nekrtemplar/self-destroying-serviceworker-73d62921d717
p
Thank you Michael!
If the user is online, then I want to unregister the service worker and then register it. That way they'll be using the latest version of the page while online and it will work if they're offline too.
m
I can't recommend enough not using service workers. it's caching hell
it's very, very possible to get into an un-updatable state
(that being said, there are some things service workers are fine for, but like... omg. SW are a nightmare)