4 ms·
I never understood that, why would moving assets to another domain name speed things up? Wouldn't it involve another DNS lookup, thus adding to download time?
by SquareWheel 15y ago
I never understood that, why would moving assets to another domain name speed things up? Wouldn't it involve another DNS lookup, thus adding to download time?
edit: I remember reading about this on Yahoo's speed guide, actually: http://developer.yahoo.com/performance/rules.html#cookie_free http://developer.yahoo.com/performance/rules.html#cookie_fre...
Still don't quite get it though. Cookie data is always passed in HTTP requests for some reason?
- jmileham 15y agoYeah, there's an initial hit, but only one DNS lookup per session-or-so if you've got your TTLs right. You're likely to hit hundreds (if not thousands) of assets in a typical Facebook session, though. Edit: Actually, in Facebook's case, Akamai has a 20 second TTL. But it's not difficult to perform ~1k asset requests in that amount of time... just scroll through a large friend list.