Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
ajit55518886yLong long ago, www subdomain was for default host machine under a domain, now it's the default route.
-
@ajit555 Yeah, I'm well aware of that :) Though I remember someone here on dR arguing that it was good for cookies or something...
-
Imagine you use cookies on example.com, and then some genius strikes you that it's good practice not to use cookies on static assets. So you put them into static.example.com. Yeah cool, but that doesn't work because example.com already uses them.
If your main content goes via www.example.com and you use cookies, then you can add static.example.com without cookies.
Or you say fuck it and just put all the static shit onto a CDN, in which case you won't have that problem at all, but a CDN may be overblown for a small to medium web project.
Related Rants
What are the benefits of using www for a domain? I know it has something to do with cookies, but I can't find any useful info on the webs.
question
oreos
domains
cookies