But performance-wise if the cookie is just a session id then maybe sending a few hundred bytes extra with each resource request doesn't even show up in profiling.
With cookies the number of connections opened remains the same, amount of bytes received remains the same.
Most of the network time with a pageload is wasted on opening a connection for each resource and streaming the output, if there's a need to optimize then instead of getting rid of cookies it's better to concat resources etc or move to SPDY.
OR, just buy that second domain for static content if client-side performance becomes that important and sending unneeded cookies feels like a waste :)
And if you get a client that isn't using ethernet (maybe GSM, what is its minimum package size?), they'll probably use large TCP packets too, and pad at that level.
I would argue, IMO, when you need to expand you subdomains in the future, mixing naked domain and subdomains is even more uglier, and cause the inconsistencies, e.g.
example.com api.example.com admin.example.com
When we are talking about the default, it should be safe to use, and "www" is the safe choice here for people who NEVER heard about the CNAME and the cookie issues. Advertising something (like http://no-www.org) for the matter of taste without mentioning the potential drawbacks (even there are workarounds), is irresponsible IMO.
That seems perfectly normal to me. The first one is the main service, the second is the API for that service, the third the admin site for that service.
Whether you use www or not wont it will still be two DNS requests?
www.mysite.com
static.mysite.com
compared to mysite.com
mysitestatic.comEnabling do not track adds about as much header info as a php session cookie, should we be advising people not to enable do not track as it will affect performance? That's just silly.
I mean either way were adding only a few bytes to the request.
If the issue is caching based on headers that is an awful naive CDN as there are going to be literally thousands of variations in the user agent and accept language headers.
I mean maybe a few bytes for headers made a difference in dial up days but I assure you they make no difference today.
If there's anything that will make me reluctantly enforce a www subdomain, it would be security.