Connection
Controls whether the network connection stays open after the current transaction finishes.
Syntax
Connection: keep-alive | close
Example
Connection: keep-alive
Description
Connection controls whether the connection stays open. HTTP/1.1 defaults to keep-alive for persistent connections.
Connection: close tells the client the server will close the connection after the response.
Not used in HTTP/2 and HTTP/3 — connection management is handled by the protocol.
How real sites send this header
Home-page responses of 503 popular sites from the enterno.io /check catalogue, checked in the last 30 days.
10.3%
(52 of 503) send Connection.
Most common values:
keep-alive— 46 sitesclose— 5 sites
See it on: nginx.org, fornex.com, freebsd.org, gradle.org, keras.io
Check if your website sends this header correctly
Check your headers →