I want to serve assets to the internet. I have created a public bucket with website hosting enabled.
I have discovered several kinds of URLs supported by AWS:
# HTTP + HTTPS
https://<bucket>.s3.amazonaws.com/<file>
# HTTP only!
http://<bucket>.s3-website-<region>.amazonaws.com/<file>
# HTTP + HTTPS
# Will be removed
# See https://forums.aws.amazon.com/ann.jspa?annID=6776
https://s3.<region>.amazonaws.com/<bucket>/<file>
Why are there so many formats and which one is preferred?
From my POV the first URL is simpler and supports HTTPS so it is better IMO, but are there downsides to using it?