[Webkit-unassigned] [Bug 187435] "serviceworker.js" is fetched several times in a row

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jul 9 09:51:43 PDT 2018


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

--- Comment #4 from Chris Dumez <cdumez at apple.com> ---
(In reply to youenn fablet from comment #3)
> As per service worker spec, every time a navigation load happens (a page or
> an iframe is loaded), the service worker script is fetched, so this
> repetitive loads could actually happen.
> I would expect 304 though, not 200, and it seems suspicious that only
> Safari/iOS would behave this way.
> Nuno, is there a web site where we could repro this case?

Note that by default, service workers script fetches bypass the HTTP cache, as per the specification. We actually reported a bug against the specification about this but this behavior was apparently intentional.

As a Web developer, you can opt into using the HTTP cache by using {updateViaCache: "all" } as options when registering your service worker.

-- 
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/20180709/a1428869/attachment.html>


More information about the webkit-unassigned mailing list