Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How does the preconnect work with the t.co redirect in between? t.co will return a 301 right? Then we see the real domain, then the browser can preconnect to the server, not earlier, or can it?


Twitter run t.co so they know where the redirect goes without actually asking t.co. So they can preconnect to the target domain as well. And that's where they goofed up (I mean, apart from preconnecting to all these domains in the first place).


Ah I get it. I thought the preconnect was an attribute on the anchor tag, but it's not. Confusion resolved, thanks.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: