문제

When a server sent a keep-alive header to a client

Does it mean that every requests of this client ip will be benefited?

Does it mean that every requests of this client ip plus session will be benefited?

Put it into a situation.

After I browse a website and the server sent keep-alive to me. I open another browser and go to the same website. Will my second request connect without handshake?

I read the documentation but I could not find out the target. Please help me.

도움이 되었습니까?

해결책

In HTTP 1.0, if both the client and server support keep alive then the connection will be persisted and multiple requests can use the same connection without handshaking each time, benefitting the session by slightly reducing request/response time.

In HTTP 1.1, connections are keep alive by default so this is the expected behaviour.

This happens within the session - another browser window would constitute another session, so there would be no connection sharing and therefore no benefit.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top