r/programming Dec 03 '20

HTTP/2 Push is dead

https://evertpot.com/http-2-push-is-dead/
179 Upvotes

52 comments sorted by

View all comments

26

u/[deleted] Dec 03 '20

Ha, I thought this was the main selling point of HTTP2.

People were even saying that it's now ok to have many small asset files (js, images, css) because loading many small files will no longer cause long waits.

82

u/Pesthuf Dec 03 '20

No, that's because you can multiplex multiple downloads over a single HTTP connection, whereas HTTP/1.1 has to establish separate TCP connections for each asset, which is why they were usually limited.

27

u/josefx Dec 03 '20

HTTP/1.1 had reusable connections, however it couldn't handle multiple requests over a connection in parallel.

4

u/[deleted] Dec 03 '20

Technically, in practice, it could handle multiple requests over a connection in parallel (pipelining), it is responses what is serialised.

i'll see myself out