Caching Site Assets with AWS CDK & S3
AWS S3 CDK
Getting caching right yields huge performance benefits, saves bandwidth and reduces server costs. With AWS CDK, we can easily set different Cache-Control headers by creating multiple BucketDeployment constructs.
Deploy a static site to AWS S3 and CloudFront using AWS CDK
AWS S3 CloudFront CDK TypeScript
Amazon Web Services (AWS) is the most comprehensive and widely adopted cloud platform in the world. Using the AWS Cloud Development Kit (CDK), we can easily define our cloud infrastructure as code (using TypeScript) and host our site on S3, serving it with Amazon’s high-performance CloudFront CDN.