0

雅虎!开发人员指南说“从用户的角度来看,跨多个地理分散的服务器部署您的内容将使您的页面加载速度更快”。

作为我在某处读到的解释,浏览器将从同一个域同时加载多达 5 个内容。

例如cdn.example.com,在前面的语句中,子域是否会被视为新域?

4

1 回答 1

1

Yahoo: The HTTP/1.1 specification suggests that browsers download no more than two components in parallel per hostname. If you serve your images from multiple hostnames, you can get more than two downloads to occur in parallel.

Google also says you only need different host names.

This may depend on browser, but I believe they may need to have different IP addresses. All that HTTP spec really says is: "Clients that use persistent connections SHOULD limit the number of simultaneous connections that they maintain to a given server."

So the safest choice is to have different host name AND address.

于 2010-03-11T16:51:47.120 回答