【发布时间】:2016-03-12 11:17:58
【问题描述】:
我不知道具体怎么问,所以我试着举例说明。
我在example.com 上拥有这些资源,这是一个启用HTTP/2 的服务器:
//example.com/css/file.css
//example.com/js/file.js
//example.com/images/file.png
我想要的是通过指向域example.com 的别名域cdn.example2.com 加载其中一个文件。因此,HTML 中的实际资源应该如下所示:
//example.com/css/file.css
//cdn.example2.com/js/file.js -> points to //example.com/js/file.js
//example.com/images/file.png
我的问题是:第二个示例中的所有资源是否应该由浏览器通过单个连接加载,因为它们将在没有别名域时加载?
感谢您的帮助。
【问题讨论】:
标签: apache nginx dns cname http2