Should Your Domain Include WWW?
Many of us never realized that omitting the WWW from your domain can impact the performance of your site. Learn more about this performance issue
We operate in an industry where most of the people who work in development, engineering, IT Operations, etc. optimize their sites to death, trying to squeeze every millisecond out of their load times. Yet sometimes, techniques that are staring us right in the face go unnoticed.
Recently, as I was trying to buy a new shiny gadget, I just typed apple.com in my browser bar and was met with an extremely slow load time. I told myself my cable modem must be acting up, so I rebooted. But that did not change anything.
Then I typed www.apple.com and then I got the speed I expected.
To find out why, let’s see what IP address apple.com points us to using the DIG tool:
Now let’s look at the DIG for www.apple.com:
As you can see, the www domain is configured to point to Akamai, whereas the non-www one is pointed to Apple’s internal servers. When you set up your domain, you have to give the root (i.e. catchpoint.com) to an A Record.
What’s the impact when this isn’t done? In the case of Apple, it’s huge – about six times slower.
But Apple is hardly alone here. We surveyed 1,000 of the top internet domains. Out of those 1,000, a little over half (513, to be precise) had both the www and non-www domains point to the same IP address. That means that 487 domains configured them differently, thus potentially giving a different user experience.
The main reason for this difference is the complexity involved with setting up such a configuration so that it works with your DNS, Web Servers, and CDNs. Sadly, it hasn’t gotten any easier in recent years, and so most companies resolve the issue through a 301 or 302 redirect. However, not only is this method slower, but it also adds risk because people forget to monitor the redirects.
This issue becomes even more relevant due to the increase of mobile usage. No one types www. into the browser on their phone – a behavior that has extended to desktop browsing as well – but the ultimate price is a slower user experience. Additionally, mobile browsers and even Microsoft Edge automatically hides www., thus reinforcing on the user the idea of “domain.com” without the prefix:
As we’ve said before, performance is about more than just speed – it’s also about reliability and consistency. Given that many companies don’t bother to include the www. prefix when listing or advertising their site, most users don’t even know that including it or not including it could have any effect on their experience.