HTTP 2
Performance for free
- multiplexing
- one TCP connection to get all assets
- each request has a stream ID
- ![[image-20221023191307452.png]]
- no need for HTTP/1 hacks
- image sprites
- bundling your JS into 1 file
- Compressed (binary)
- HTTP/1 is in plain text
- server push
- can send resources before HTML is fully parsed
You can also cancel requests!
Last update:
2023-04-24