Re:Subdomain Me - add www with an A record
by jamuraa on Tuesday January 04, 2011 @06:19PM
(#2069005)
That's weird, I usually go the other way - I redirect the www to the naked domain.
[ Parent
| on HN ]
Re:Subdomain Me - add www with an A record
by storborg on Tuesday January 04, 2011 @07:01PM
(#2069150)
I may be wrong here, but I think there's one good reason to use anything.example.com instead of example.com: with the naked domain, you can't have a separate domain for static assets which the client doesn't send the cookie to (for performance improvement). If you set a cookie with the domain example.com, it will still get sent to static.example.com.
Granted, you could use examplecdn.com or something, but then you have to register and manage more domains.
Re:Subdomain Me - add www with an A record
by apgwoz on Tuesday January 04, 2011 @07:08PM
(#2069180)
Isn't that what the domain portion of the set-cookie header is for?
Re:Subdomain Me - add www with an A record
by seabee on Tuesday January 04, 2011 @07:32PM
(#2069244)
It gets propagated to subdomains, it doesn't restrict it to just the domain specified.
Re:Subdomain Me - add www with an A record
by apgwoz on Tuesday January 04, 2011 @08:24PM
(#2069394)
Yes, it gets propogated to subdomains, but the point was that if you have subdomain X.y.z, as long as you set the cookie for y.z, the cookie is valid for X.y.z and U.y.z.
Re:Subdomain Me - add www with an A record
by storborg on Tuesday January 04, 2011 @08:30PM
(#2069404)
My point was that you don't want the cookie to be sent to other subdomains, so you'd actually want to set the domain to X.y.z. You can't do that if you're web domain is y.z.
Re:Subdomain Me - add www with an A record
by calloc on Tuesday January 04, 2011 @06:44PM
(#2069072)
Google AppEngine does not support naked domains unfortunately.
At least, that is what I use it for myself.
Re:Subdomain Me - add www with an A record
by trafficlight on Tuesday January 04, 2011 @06:44PM
(#2069071)
That's the way it should be. It's a shame the www convention took hold.