- Newest
- Most votes
- Most comments
Hi,
Thank you for raising your concern.
Yes the documentation is correct that when the viewer supports both formats, CloudFront uses Brotli. But as you said Cloudfront always responds with content-encoding: gzip even for Accept-Encoding: gzip, deflate, br, I would like you to confirm that origin is not returning the gzip compressed file to CloudFront.
If your origin returns a compressed file to CloudFront, CloudFront detects that the file is compressed based on the value of the Content-Encoding header and doesn’t compress the file again. (https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html)
Hi,
Many thanks, this pointed me in the right direction. Apparently, for some files the build process already zipped them when uploading to s3.
Best,
Marcel
Relevant content
- asked 2 years ago
- asked 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago