What does HTTP keep-alive save the client?
Connection: keep-alive
- Re-sending cookies each time
- Encrypting every response
- A new TCP handshake per request
- Resolving DNS again for each image
Persistent connections reuse one TCP (and TLS) session for many requests, cutting handshake latency. It is the default in HTTP/1.1.
Play Networking ▸