7

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.

Comments
  • 2
    Long long ago, www subdomain was for default host machine under a domain, now it's the default route.
  • 0
    @ajit555 Yeah, I'm well aware of that :) Though I remember someone here on dR arguing that it was good for cookies or something...
  • 2
    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.
  • 1
    @Fast-Nop Thanks, that confirms my suspicion :) Good explanation
  • 2
    @Fast-Nop Just what I came here to say 😊
  • 0
    You can also use CNAME DNS records, which are not without a sub domain.
  • 0
    @jOkEr-jAsE Oh damn... I'll remove it right away!
  • 1
    @jOkEr-jAsE ah that's why we went from .wav to .mp3, right?
Add Comment