- From: Artem Andreev <notifications@github.com>
- Date: Fri, 08 May 2015 04:51:18 -0700
- To: slightlyoff/ServiceWorker <ServiceWorker@noreply.github.com>
- Message-ID: <slightlyoff/ServiceWorker/issues/697@github.com>
Hi all, as far as I understood the replacement of App Cache is one of the major reasons in implementing Service Workers ("Service Workers are meant to replace the (oft maligned) HTML5 Application Cache"). I think there will be a long way until all browsers will fully support Service Workers. So it would be good to have ability to fallback to App Cache in the case if Service Worker is not implemented in current browser. In that case I guess a page will contain both App Cache manifest and Service Worker registration declaration. https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorker_API contains a note "For backwards compatibility, you could choose to use service workers and AppCache on the same web app to do equivalent things (if the AppCache will support doing those things, of course.) What happens in such a case is that browsers that don’t support Service Workers will use AppCache, and those that do will ignore the AppCache and let the service worker take over." But as far as I can see for Chrome 42 it's not the case. Both ServiceWorker and AppCache are used simultaneously. I see 9.5.11 in the spec. But I'm not sure if that is sufficient. Does that make sense to specify explicitly when AppCache should be used if page has ```navigator.serviceWorker.register``` call? Or any way to prevent AppCache to be used (I tried ```window.applicationCache.abort()``` - no luck). --- Reply to this email directly or view it on GitHub: https://github.com/slightlyoff/ServiceWorker/issues/697
Received on Friday, 8 May 2015 11:51:45 UTC