Writing a Service Worker
21–30 of 60 posts
Re: Writing a Service Worker
#22I always get all stoked on service workers until I remember that half my users are on safari. Then I get bummed.
Re: Writing a Service Worker
#23Re: Writing a Service Worker
#24Re: Writing a Service Worker
#25I always get all stoked on service workers until I remember that half my users are on safari. Then I get bummed.
What's the difference with Safari? (not a JS dev, so this is not familiar territory)
Re: Writing a Service Worker
#2620 lines of JS top on HN. Slow news day I guess...
Re: Writing a Service Worker
#27I always get all stoked on service workers until I remember that half my users are on safari. Then I get bummed.
Sure, some browsers will have a more robust experience in adverse network conditions, but the experience once a page has loaded will be identical. It's also difficult to accidentally make the worker a hard dependency of a site, since even supported browsers will load the site without the worker on first visit.
Re: Writing a Service Worker
#28Re: Writing a Service Worker
#29How large can the cache get at max?
Re: Writing a Service Worker
#30Best use case of this I guess, is some kind of flight mode for web apps. Before going in to metro or flight, you click a button, and for example HN caches front page for you.
Caching cross-origin resources is problematic because you can't check the response code: https://stackoverflow.com/q/35626269