Leveraging S3 as a CDN in a modern web application build
medium.com
medium.com
Web applications typically begin their life serving their
own static assets(javascript, css, etc) to the browser. An
alternative to this strategy would have these assets be
hosted by a highly-available content delivery network or
CDN (e.g. Amazon Simple Storage Service (S3)).
S3 isn't a CDN. It's a storage service. And it has egress charges (per request and bandwidth). Using it as a CDN seems like madness. Especially when Amazon has a CDN called CloudFront. Or you could stick everything in S3 and use a third party, free CDN like Cloudflare. By all means store your assets in something like S3 but don't use it as a CDN. It's not.