I wonder how much that has to do with Chrome and Firefox (and probably other browsers?) prepending www (and https).
edit: I guess both of mine have some plugin doing this?
edit: I guess both of mine have some plugin doing this?
If I served my site through the apex domain, I'd redirect www to the apex — standard practice. With that in mind, if a browser kept forcing me to go to www when it hit the apex, and my site kept forcing the apex when it saw a hit to the www, you'd have an endless loop and the user would never be able to see the site.
$ curl -v https://google.com
[...]
< HTTP/2 301
< location: https://www.google.com/ $ curl -i https://google.com
HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
...
EDIT: interesting that it responds with HTTP/2 in your case and HTTP/1.1 in mine, would need to look up why the responses are different.Chrome is moving towards the opposite though, hiding the www subdomain in the browser bar.