Loading...
server {
listen 80 http2;
server_name example.com;
}server {
listen 443 ssl;
http2 on;
server_name example.com;
}Browsers only use HTTP/2 over TLS, so it has to be enabled on the HTTPS listener, not on port 80.
No, major browsers removed it. Use 103 Early Hints or <link rel="preload"> instead.
Less than before. Many small files are cheap, but thousands of modules still add overhead, so moderate bundling with code splitting works best.
Open the Network panel in DevTools and enable the Protocol column; HTTP/2 requests show 'h2'.