Long waiting for service worker times with query param
Reported by
ahoj...@gmail.com,
Sep 5 2017
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3205.0 Safari/537.36 Steps to reproduce the problem: 1. Go into https://www.forbes.pl 2. wait to activate service worker and reload the page with additional querystring 3. on the main thret there should be a long time "waiting for service worker" What is the expected behavior? waiting for service worker should be wery short What went wrong? there was a long time waiting for service worker Did this work before? No Chrome version: 63.0.3205.0 Channel: stable OS Version: OS X 10.12.6 Flash Version: none
,
Sep 5 2017
,
Sep 11 2017
Wow very interesting. My repro: 1. Go to https://www.forbes.pl/ 2. Wait for page to load 3. In DevTools application panel > Service Workers, confirm the worker is "activated and running" 4. Change the url to add a query param, such as https://www.forbes.pl/?aa 5. Look at the network panel for the main resource 2 second long "Request to service worker". :o
,
Sep 11 2017
I think it is because it takes time for the service worker to receive the HTTP response from the server. You can see the request from the SW when you enable the "Preserve log" check box.
,
Sep 11 2017
Ah yes, and any new query string is treated as a brand new resource by the browser, so it'd never use the cached one. Sounds good to me. |
|||
►
Sign in to add a comment |
|||
Comment 1 by math...@qiwi.be
, Sep 5 2017Status: Untriaged (was: Unconfirmed)