Dynamic CloudFront origin selection based on custom HTTP headers and cookies. — Using S3 and CloudFront for storing and serving your single-page application is a no-brainer. For some cases this is sufficient. Once your application gains traction and you need to fix bugs or deliver updates and features, creating a more flexible environment is a sensible step to take. It makes sense…