<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [link preload] Double downloads of preloaded CSS"
   href="https://bugs.webkit.org/show_bug.cgi?id=169274#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [link preload] Double downloads of preloaded CSS"
   href="https://bugs.webkit.org/show_bug.cgi?id=169274">bug 169274</a>
              from <span class="vcard"><a class="email" href="mailto:koivisto&#64;iki.fi" title="Antti Koivisto &lt;koivisto&#64;iki.fi&gt;"> <span class="fn">Antti Koivisto</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=303647&amp;action=diff" name="attach_303647" title="Patch">attachment 303647</a> <a href="attachment.cgi?id=303647&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=303647&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=303647&amp;action=review</a>

<span class="quote">&gt; Source/WebCore/loader/cache/CachedResourceLoader.cpp:929
&gt; +    if (textDecoder &amp;&amp; !textDecoder-&gt;hasEqualEncodingForCharset(cachedResourceRequest.charset())) {
&gt; +        if (!existingResource-&gt;isLinkPreload())
&gt; +            return Reload;
&gt; +        existingResource-&gt;setEncoding(cachedResourceRequest.charset());
&gt; +    }</span >

What happens if there are multiple requests for the same link-preloaded resource with different charsets?

&lt;link rel=&quot;preload&quot; href=&quot;foo.js&quot; as=&quot;script&quot;&gt;
...
&lt;script src=&quot;foo.js&quot; charset=utf-8&gt;&lt;/script&gt;
&lt;script src=&quot;foo.js&quot; charset=latin1&gt;&lt;/script&gt;</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>