所以我在nginx(nginx / 1.10.1)上使用以下配置
启用了http2server {
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?我在这里错过了什么?