没有为所有资源使用 HTTP/2
Published on • Updated on
Translated to: English, Español, Português, 한국어, Pусский, 日本語
HTTP/2 可以更快地为网页传输资源,并且通过网络传输的数据更少。
Lighthouse HTTP/2 审计失败的原因
Lighthouse 列出了所有未通过 HTTP/2 提供服务的资源:
![Lighthouse 审计显示未通过 HTTP/2 提供的资源](https://wd.imgix.net/image/tcFciHGuF3MxnTr1y5ue01OGLBn2/Gs0J63479ELUkMeI8MRS.png?auto=format)
Lighthouse 会收集页面请求的所有资源,并检查每个资源的 HTTP 协议版本。在部分情况下,审计结果中会忽略非 HTTP/2 请求。欲了解更多详细信息, 请参阅实现。
Each Best Practices audit is weighted equally in the Lighthouse Best Practices Score. Learn more in The Best Practices score.
如何通过本次审核
通过 HTTP/2 传输资源。
要了解如何在服务器上启用 HTTP/2,请参阅设置 HTTP/2 。
资源
Updated on • 改进文章