S3 + Cloudfromt is not serving .gz /.br static file when client request header contains Accept-Encoding: gxip, deflate, br.
- Compressed file at build time and s3 folder contains index.html, index.html.gz and index.html.br
- Added Accept encoding in whitelist header of cloudfront.
- Added Content-Length in S3 CORS configuration
- Added Content Encoding for index.html.gz as gzip and index.html.br as br with Content-Type as text/html
- Disabled Automatic compression in cloufront
But i am not getting compressed files from S3+ cloudfront. I am able to access index.html.gz directly. but cloudfront+S3 not able to serve the file automatically. Am i missing something? Or is it not possible to serve like this?