You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wrong in 650efab. It turns out
that the reason Chrome isn’t reusing the TCP/TLS from the `preconnect`
had nothing to do with CORS, but is down to the fact that requests made
with `Sec-Fetch-Mode: navigate` (e.g. `iframe`s) are placed into
a separate connection pool[1], meaning only their DNS can be reused.
A `preconnect` is actually quite wasteful in this scenario, and using
a humble `dns-prefetch` is the only way to get any real gains.
1. chromium.org/developers/design-documents/network-stack/preconnect
0 commit comments