http://coldfusion.com logo
#javascript
Title
# javascript
p

phillipsenn

04/11/2022, 4:40 PM
I'll post all this to stackoverflow too. (But I'll probably get my hand slapped)
m

Michael Schmidt

04/11/2022, 4:51 PM
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

phillipsenn

04/11/2022, 6:59 PM
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

mistersender

06/21/2022, 5:59 PM
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)
3 Views