Web devs: Why do browsers send Connection: keep-alive when TCP already keeps connections alive? 🤔
Sooraj@suryanox7·1dWeb devs: Why do browsers send Connection: keep-alive when TCP already keeps connections alive? 🤔Çevir English493703.2K15
Devdeep@_devdeep·1d@suryanox7 Actually, the header is an HTTP‑level signal. TCP may keep the socket open, but without Connection: keep-alive a server can legally close it after each response, especially with HTTP/1.0 clients.Çevir English101162
Sooraj@suryanox7·1d@_devdeep Exactly. TCP keeps the socket alive, while Connection: keep-alive tells HTTP to reuse it instead of closing it after the response.Çevir English000123