[Webkit-unassigned] [Bug 250454] Duplicate requests due to speculative parsing with active service worker

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 2 09:02:13 PST 2023


https://bugs.webkit.org/show_bug.cgi?id=250454

--- Comment #4 from marian.schaub at baqend.com ---
An update from our side: We did a bit more testing and were after all able to reproduce the described behavior without the use of the mentioned settings.

For our initial test setup we also noticed an additional case besides Hard Reload and Disable Cache: We can also reproduce the problem on the first load after installing the service worker. This also happens without the use of Disable Cache. For all subsequent reloads the behavior does not occur as you have pointed out.

We additionally set up another test page which does in general behave similar to our first test but instead of using a cacheable blocking script (main.js) we now use a script which the browser cannot cache (otherScript). Now the behavior is reproducible even without the additional settings and also on subsequent reloads:

1. Open https://sw-lifecycle-test.app.baqend.com/speculativeParser/index2.html?sw=1
2. Open web inspector without checking "Disable Cache" 
3. Reload page

Now we can once again see two requests for each of the resources that are actually fetched by the service worker (test1.jpeg and slowScript), one initiated by the line of the un-cacheable script (otherScript, line 26) and one request initiated by the respective tags (line 27 and 29)

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230202/af240673/attachment.htm>


More information about the webkit-unassigned mailing list