[Webkit-unassigned] [Bug 170122] [link preload] Double downloads of preloaded content when it's in MemoryCache

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 24 00:01:08 PDT 2017


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

--- Comment #34 from Yoav Weiss <yoav at yoav.ws> ---
I have discussed that with Antti and avoiding a double download is the right behavior here. We consciously removed support for the "load the script twice with two different encodings" scenario, at it is an edge case. As you can see in previous patches on this issue, I tried to support that case by changing the encoding of the cached resource, but Antti rightfully observed that to be dangerous behavior which may lead to memory issues.

The MemoryCache is underspecced and we should definitely work to improve that, but in the mean time, comparing WebKit to Firefox, which reloads *every* script reference regardless of charset changes, is not an apples to apples comparison (no pun intended).

FWIW, Chrome also fails that edge-case test, for similar reasons.

-- 
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/20170524/93c8f1e7/attachment.html>


More information about the webkit-unassigned mailing list