RT
whether the keep-alive in the HTTP request corresponds to interface reuse or domain name reuse.
has been learning this knowledge recently, and inadvertently sees this problem and looks confused again.
RT
whether the keep-alive in the HTTP request corresponds to interface reuse or domain name reuse.
has been learning this knowledge recently, and inadvertently sees this problem and looks confused again.
keep-alive is the reuse of the corresponding domain name, more specifically, it refers to the underlying TCP connection reuse.
HTTP is based on TCP, and each HTTP request requires a three-step handshake. If a page has multiple requests for a domain name, connections will be established and disconnected frequently. So in HTTP 1.0, Connection: keep-alive, is used to establish persistent connections, which is what we call Keep-Alive mode. The following figure shows a comparison of requests in normal mode and long connection mode:
:https://segmentfault.com/a/11...
ChromeNetworkInitial connection
Previous: Elment-ui el-tree click how to rename, change the name
Next: How to configure PHP function comment headers by vscode