[w3c/ServiceWorker] Navigation preload shouldn't occur when there is no fetch event handler (#1058)

As written, the spec sends a navigation preload (#920) request even if there is no fetch event handler.

But this seems meaningless.  The SW can't use the preload response. And the "real" navigation request will be sent immediately after the preload request since SW startup doesn't happen.

We could possibly reject the enable() promise in this case, or at least browsers should emit a developer warning.

Chrome 57's implementation does not send the preload, but it doesn't yet warn or reject on enable(), which could be confusing.

WDYT? @jakearchibald @n8schloss @wanderview 

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

Received on Friday, 20 January 2017 04:16:25 UTC