Http2 nginx和chrome

时间:2016-09-13 09:46:58

标签: nginx http2

所以我在nginx(nginx / 1.10.1)上使用以下配置

启用了http2
server {
  listen 443 ssl http2;

   ....
}

当我使用curl curl -I https://example.com预先形成请求时,我得到了回复:

HTTP/2.0 200
date:Tue, 13 Sep 2016 09:41:11 GMT
content-type:text/html
....

当我在Chrome响应中执行相同的请求时:

HTTP/1.1 200 OK
Date: Tue, 13 Sep 2016 09:43:43 GMT 
Content-Type: text/html

为什么chrome没有切换到http2?我在这里错过了什么?

0 个答案:

没有答案