Nov 18, 2021
Hey, Cloudfront supports Brotli compression so if the files you want to serve are static then I'd say pre-compress them and upload to s3 in Brotli format, some docs https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html
Cloudfront can also automatically compress your files, but depending on the file sizes etc. there might be a performance consideration.