[w3c/ServiceWorker] should prefetch loads trigger FetchEvents? (#1302)

Lately I noticed some odd additional FetchEvents in chrome on https://fetch-event-echo.glitch.me:

https://bugs.chromium.org/p/chromium/issues/detail?id=832105

I think these might be prefetch loads.

This got me wondering, should prefetch trigger a FetchEvent?  What is the clientId?  What is the resultingClientId?

On the one hand, prefetch seems to be defined for a document via the <link> tag:

https://w3c.github.io/resource-hints/#prefetch

However, does it really make sense to "prefetch" a resource through the service worker?  I was under the impression that prefetch was really there to optimize loading resources over the network.  Does dispatching a FetchEvent for these loads just slow down the network optimization for no reason?

-- 
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/1302

Received on Tuesday, 17 April 2018 13:14:18 UTC