Opening a new network connection for every single request adds noticeable overhead — keep-alive lets a single connection handle multiple requests in sequence.
The Overhead It Avoids
Establishing a fresh TCP (and often TLS/SSL) connection takes measurable time; a page loading dozens of resources benefits significantly from reusing one connection rather than paying that setup cost repeatedly.
How It's Configured
Most modern web servers enable keep-alive by default, though the specific timeout duration (how long a connection stays open waiting for another request) can usually be tuned.
Español
Deutsch