Can browsers download two components in parallel p

2019-05-07 12:43发布

I know that: "browsers can download two components in parallel per hostname" example www.example.com & www.example.org

My question is: can browsers download two components in parallel per subdomain ? www.example.com & images.example.com

标签: http browser
2条回答
女痞
2楼-- · 2019-05-07 13:21

Yes they can. I've just done it myself with a Ruby on Rails application using Rails' built-in support for multiple asset hosts. They're all subdomains e.g. asset0.example.com, asset1.example.com etc.

查看更多
等我变得足够好
3楼-- · 2019-05-07 13:44

The rule is actually weaker, "should not download more than 2". And yes, that's per hostname. www.example.com & images.example.com are two hostnames. However, there is no guarantee that browsers will actually use 4 concurrent downloads.

查看更多
登录 后发表回答