If the aliases allow different IP addresses, it is not possible to load resources on the same connection (the so-called "reuse of the connection" over HTTP / 2, if I'm not mistaken). This is a problem with the CDN from here.
But for your peace of mind and full satisfaction of the CDN, reusing the connection is a difficult task, and you may not have it, even if all your domains allow the same IP address, as in your case.
To be future proof, you can make sure that your sites are configured with certificates configured correctly to enable reuse of the connection.
In the current versions of Firefox and Chrome, I did not observe reuse of connections even after carefully issuing certificates and, of course, Iām sure that these two domains point to the same IP address.
And just food for thought: HTTP / 2 over TLS requires SNI , which only happens when a connection is opened. Therefore, when you first connect to the same domain, for example example.com, the server receives SNI data. But the server will not receive such data if the same connection is reused to send a request to cdn.example.com. Some servers or usage scenarios may be sensitive to this asymmetry, and this may have something to do with how browsers use (or not) connection reuse. But these are only your speculations ...
dsign
source share