Re: [w3c/ServiceWorker] Proposal: Allow addEventListener/removeEventListener for 'fetch' to called at anytime (#1195)

> the SW cache may expire

That isn't something SW caches can do. I guess you mean you just delete them manually?

We have a couple of options. We could provide an API to enable/disable fetch interception, eg `swRegistration.fetch.disable()`, kinda like [navigation preload](https://w3c.github.io/ServiceWorker/#navigation-preload-manager). Or we could extend navigation preload to preload subresources too. I went for `fetchEvent.preloadResponse` figuring that we'll probably end up preloading other kinds of requests too at some point.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/ServiceWorker/issues/1195#issuecomment-331871178

Received on Monday, 25 September 2017 12:53:05 UTC