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

chrome 不再支持 http2 server push #64

Open
nmsn opened this issue Nov 23, 2022 · 1 comment
Open

chrome 不再支持 http2 server push #64

nmsn opened this issue Nov 23, 2022 · 1 comment

Comments

@nmsn
Copy link
Owner

nmsn commented Nov 23, 2022

https://developer.chrome.com/blog/removing-push/

@nmsn nmsn added the 浏览器 label Nov 23, 2022
@nmsn
Copy link
Owner Author

nmsn commented Nov 24, 2022

关键信息:

  1. Chrome 106 版本以及其他 Chromium-based 浏览器下个版本将 默认禁用 HTTP/2 Server Push
  2. 默认禁用原因:性能优势很难体现,在某些情况下还会使性能下降,用的人也少(Server Push​ 很难避免推送浏览器已经拥有的子资源,其实很多资源在浏览器第一次请求到就已经缓存下来了)
  3. HTTP/3 推送有相关的规范,但是大部分已经“退休”
  4. 替代方案:
    1. [103 Early Hits])https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/103_ 有很多 Push 相关有点,缺点很少
    2. 预加载关键资源

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

No branches or pull requests

1 participant