On 30 January 2015 at 19:24, Naoki Hirata <[email protected]> wrote:
> An edge case example of what I'm worried about is: > Camping and being in the middle of no where, and then the phone dies. > You're able to charge the device via Pan Charger ( > http://www.slashgear.com/pan-charger-boils-your-iphone-battery-back-to-life-21160661/ > ) or some similar device. Will the service worker still be able to launch > the dialer for emergency calls without having a net connection? > Yes. A Service Worker acts like a local proxy and can intercept network requests and respond to them without going to the network. It could work just as well offline as a packaged app. > I guess my assumption here is that the service worker relies on > information in cache and being active. What happens when that gets > disrupted? > > I'm trying to read up on it a little here : > http://www.w3.org/TR/service-workers/ > The spec doesn't make for light reading material! This https://github.com/slightlyoff/ServiceWorker/blob/master/explainer.md <https://bugzilla.mozilla.org/show_bug.cgi?id=1036275> or this http://jakearchibald.com/2014/service-worker-first-draft/ might be a better introduction. <https://bugzilla.mozilla.org/show_bug.cgi?id=1036275> _______________________________________________ dev-webapps mailing list [email protected] https://lists.mozilla.org/listinfo/dev-webapps
