Fine if all you are doing is 302 to the www. Variant, but otherwise no.
With an extra caching key, this can even be cached.
See https://developers.google.com/speed/public-dns/docs/ecs
Anycast addresses this issue, right?[1] Cloudflare uses Anycast for their IP addresses.[2]
[1] https://en.wikipedia.org/wiki/Anycast
[2] https://www.cloudflare.com/learning/cdn/glossary/anycast-net...
With an extra caching key, this can even be cached.
See https://developers.google.com/speed/public-dns/docs/ecs