title: How do I use AWS CloudFront to cache static content that is being stored in an AWS S3 bucket and being served by an NGINX web server?
body: <p>I'm currently storing my static files for a Flask web app in an AWS S3 bucket, that is being proxy_passed to an NGINX web server that serves the files to the user. I'm thinking of browser caching some of the static files directly through NGINX but I was thinking that introducing a CDN like CloudFront in front of the S3 bucket would help improve performance. Is this a feasible caching strategy or an over-complication of caching?</p>