I just was debugging a site (with Lighthouse 3.2.0) for which I had http/2 enabled on the nginx (1.15.9 / official docker image) proxy with
listen 443 ssl http2;
but Lighthouse still said that all resources were loaded via http/1.1, when I found out that nearly all my other sites, which are also delivered over this nginx proxy, pass the http2 test (and in fact all resources are delivered via h2
for those sites).
However, all their listen stanzas definitely only have
listen 443 ssl;
and there is only one site in the whole config with http2
.
So what could be going on here? I'm more interested in why h2
seems to be enabled although I have never configured it than the one site which isn't delivering it (maybe this is due the fact that there is a node.js on the other side of the proxy_pass
or something else...).
Is http2
a default for newer nginx versions regardless of the listen stanza? I couldn't find anything like that in the docs...