Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

为什么一个网站的资源会存在于多个域名中? #22

Open
Inchill opened this issue Aug 11, 2022 · 0 comments
Open

为什么一个网站的资源会存在于多个域名中? #22

Inchill opened this issue Aug 11, 2022 · 0 comments

Comments

@Inchill
Copy link
Owner

Inchill commented Aug 11, 2022

  • 更方便 CDN 缓存
  • 突破浏览器并发限制
  • 节省 cookie 带宽(涉及用户登录时才会用到 cookie)
  • 节省主域名连接数

域名发散作为网络性能优化手段之一,并不是说越多域名越好,因为 DNS 解析域名也会有开销。而且因为很多网站采用的是 https 协议,需要安装更多的证书,不利于快速部署。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant