如何检查 http2 是否已实现并在我的网站上工作



我想检查我的网站上是否实现了http/2。当我检查 https://tools.keycdn.com/时,它说 http2 已实现,但 cmd 中的键入 curl -I 给出了 ouptut:

HTTP/1.1 200 OK
Date: Fri, 25 Jan 2019 17:02:45 GMT
Server: Apache
Pragma: no-cache
Cache-Control: max-age=0, must-revalidate, no-cache, no-store
Expires: Thu, 25 Jan 2018 17:02:47 GMT
X-Magento-Tags: FPC
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
...

哪一个是正确的 http2 是否实现?

你确定 curl 是通过 HTTP2 请求的吗?

尝试使用 --http2 ,从 curl 网站的此页面:

curl 提供了 --http2 命令行选项来启用 HTTP/2 的使用。

最新更新