There is a discussion to introduce a new API which enables the browser to send "preload" network requests for page navigation before executing the fetch event handler in the Service Worker.
Spec discussion: https://github.com/w3c/ServiceWorker/issues/920
The spec discussion is not settled yet, especially how to enable this feature.
- registration.active.setNavigationPreload()
- InstallEvent.addNavigationPreload()
But there seems to be a consensus that FetchEvent will have a new property ("preloadResponse"? "navigationPreload"?) which returns a promise that will be resolved with the preloaded network response.
I'd like to start implementing preparation patches for this feature.
Comment 1 by horo@chromium.org
, Sep 23 2016