Skip to content
学习 衡量 博客 Case studies 关于
本页内容
  • Lighthouse HTTP/2 审计失败的原因
  • 资源

不要为其所有资源使用 HTTP/2

May 2, 2019 — 更新日期 Aug 28, 2019
Available in: Español, 日本語, 한국어, Português, Русский, English
Appears in: 最佳做法审核
本页内容
  • Lighthouse HTTP/2 审计失败的原因
  • 资源

HTTP/2 可以更快地为网页传输资源,并且通过网络传输的数据更少。

Lighthouse HTTP/2 审计失败的原因 #

Lighthouse 列出了所有未通过 HTTP/2 提供服务的资源:

Lighthouse 审计显示未通过 HTTP/2 提供的资源

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 。

资源 #

  • 不要为其所有资源使用 HTTP/2审计的源代码
  • HTTP/2 简介
  • HTTP/2 常见问题
Last updated: Aug 28, 2019 — Improve article
Return to all articles
分享
订阅

Contribute

  • 提交错误
  • 查看源代码

相关内容

  • developer.chrome.com
  • Chrome 动态
  • 网站开发基础
  • 案例研究
  • 播客
  • 节目

连接

  • Twitter
  • YouTube
  • Google Developers
  • Chrome
  • Firebase
  • Google Cloud Platform
  • 所有产品
  • 条款和隐私权
  • 社区准则

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies.