我已经使用 apache 启用了 http2,
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin contact@***.com
ServerName dev.***.com
ServerAlias dev.***.com
Protocols h2 http/1.1
H2Push on
H2PushPriority * after
H2PushPriority text/css before
H2PushPriority image/jpg after 32
H2PushPriority image/jpeg after 32
H2PushPriority image/png after 32
H2PushPriority application/javascript interleaved
................
但我不明白为什么 javascript 和 css 文件要用 HTTP/1 加载不是使用 HTTP/2
有些图像是用HTTP/2加载的!!