3 ms·
I would go with www and redirect anything without www to www. I used to be against this, as the www is mostly unnecessary. However, if you ever want to serve st
by michaelmior 15y ago
I would go with www and redirect anything without www to www. I used to be against this, as the www is mostly unnecessary. However, if you ever want to serve static assets at a subdomain of your site, this is a big win.
The reason is that any cookies you set for the root domain (without www) will be sent on each request to any subdomain. So if you want to server images from images.domain.com, you'll get all the login, tracking, etc. cookies sent along with each request. 99% of the time, this is wasted bytes.
You could argue that the widespread use of CDNs for static content makes this point irrelevant, and perhaps you're right.