WebPagetest Forums
Why I have repeated initial connection and SSL negotiation within same domain? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: Why I have repeated initial connection and SSL negotiation within same domain? (/showthread.php?tid=15200)



Why I have repeated initial connection and SSL negotiation within same domain? - jasom - 01-18-2018 06:09 PM

On the figure you can see 2 main domains content is downloaded from.

[Image: kKMkxfo.jpg]

Domain 1 has repeated initial connection and SSL negotiation even various resources are on same domain, same server etc.

Domain 2 is from external content donor. All downloaded resources are images and have only one initial connection and SSL negotiation.

Why I have repeated initial connection and SSL negotiation within same domain (1)?


RE: Why I have repeated initial connection and SSL negotiation within same domain? - pmeenan - 01-19-2018 12:39 AM

There are a bunch of possible reasons. SSL needs to be negotiated for every connection. When HTTP/2 is not being used browsers will open up to 6 parallel connections to each domain to get more parallelism. When HTTP/2 is being used that largely collapses down to 1 though there are still cases where a separate connection will be used for non-credentialed (anonymous) requests (fonts are the most common case though it's possible that images referenced from css could fall into that bucket).


RE: Why I have repeated initial connection and SSL negotiation within same domain? - jasom - 01-19-2018 02:39 AM

(01-19-2018 12:39 AM)pmeenan Wrote:  ...When HTTP/2 is not being used browsers will open up to 6 parallel connections to each domain to get more parallelism...

Currently site returns "HTTP/1.1 200 OK". So basically, you say I should upgrade to HTTP/2. Ok, thank you for a hint, I will try.


RE: Why I have repeated initial connection and SSL negotiation within same domain? - les.jones@gmail.com - 03-28-2018 05:41 AM

What is your grade for "Keep-alive Enabled"? Keep alive keeps connections open so that the browser doesn't close the connection and open a new one for the next resource on the same domain.