I'm trying to configure nginx to serve a small, completely static site.
Without HTTP/2 enabled, I get this graph in Chrome developer tools:
Here, we see very good TTFB and good throughput on the files. Starting from the seventh request though, we get some queueing on the browser's part because of its 6-connection limit. This is why I wanted to switch to HTTP/2 (among its other benefits).
Now, with HTTP/2 enabled (adding the http
option in listen
):
The first couple of requests are great, but then everything deteriorates quickly from there (latency and throughput/download speed).
All other parameters remained the same, and I'm seeing this behaviour consistenly.
My nginx configuration, if it helps: https://gist.github.com/alfredxing/12757c0f7f91c91a415b651fd9510ec4
Any ideas why this may be happening?