If a domain exists say blahblah.com and has a subdomain cdn.blahblah.com, For this scenario, which one of the following two is faster
for serving(least server usage) and delivering(fastest for end-user) the website on http protocol?
cdn.blahblah.com
hasCNAME
toblahblah.com
, so that it also loads/serves same static filescdn.blahblah.com
is hosted on the same server with same home directory as that of main domainblahblah.com
(Meaning thatblahblah.com
andcdn.blahblah.com
have sameA records
and both point to same dir)
Please note that I have added Access-Control-Allow-Origin
headers for both cdn.blahblah.com
and blahblah.com
&& sole reason for using sub domain is to make the static traffic cookieless. (No usage for SPF/TXT or SRV for cdn subdomain)
p.s. This question is not a duplicate of Many domains/sites hosted on same server, CNAME alternatives to avoid writing same IP in DNS?