I was looking at setting up an S3 origin with pre-compressed objects. This mostly work by setting the content-encoding on the object and CloudFront will forward the compressed object or even convert it from gzip
to br
.
However it appears to have a problem when the client doesn't support compression. In this case CloudFront will just return the compressed object anyways leading to effectively corruption.
Is there a way to make CloudFront decompress these objects for viewers that don't request/support compression? For example like the nginx ngx_http_gunzip_module?