DEV Community

Discussion on: What is the difference between mywebsite.com and www.mywebsite.com?

Collapse
 
gtb3nw profile image
GTB3NW

Regarding CNAME's, most major DNS providers provide an ALIAS/ANAME record type which is synthetic and fixes the apex record issue.

As for the cookie problem, if you're specific and scope the cookie to the apex domain it will only work for the apex domain. If you don't scope it, you leave it up to the browser to determine and that varies. I'd argue that's a browser issue and you should be scoped to a domain as default.

Let www die already! Redirect to non-www!