WebPagetest Forums
Downside of using CNAME in CDN? - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Optimization Discussions (/forumdisplay.php?fid=5)
+--- Thread: Downside of using CNAME in CDN? (/showthread.php?tid=12165)



Downside of using CNAME in CDN? - Noobadmin - 04-10-2013 01:05 AM

Is there any speed penalty if we use CNAME to make the CDN URLs pretty eg. cdn.exmple.com instead of using the default CDN URL?


RE: Downside of using CNAME in CDN? - pmeenan - 04-10-2013 01:35 AM

Slight but as long as you have a long TTL on the CNAME it will get cached by the various ISP's DNS resolvers.

Having a CNAME basically adds another query that the DNS servers need to do - they need to query your DNS resolver first and then go query the CDN provider's resolver.

We're generally talking on the order of 10's of ms but it could be slower depending on what you are using for your site's DNS and how well distributed it is.


RE: Downside of using CNAME in CDN? - Noobadmin - 04-10-2013 01:38 AM

Thanks Patrick. I am using DNSMadeEasy, so I guess the delay shouldn’t be all that much, but it is an overhead nonetheless.