2 Answers
- Newest
- Most votes
- Most comments
0
Hi, did you confirm that the Accept-Encoding is properly set in your browser to match the Accept-Encoding parameter of your curl request? If not, CloudFront will understand that the requester doesn't accept compressed content and will decompress before sending.
See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Encoding
0
Oh well, turns out the problem for some reason is nginx refused to compress request coming from CloudFront when we set gzip_proxied expired no-cache no-store private auth;
in nginx.conf. Changing it to gzip_proxied any;
then it works…. I am not sure why curl directly to it would get a compressed result.
answered 2 years ago
Relevant content
- asked 3 years ago
- asked 3 months ago
- asked 4 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 7 months ago
Yes we are using Chrome, the request header sent is
Accept-Encoding: gzip, deflate, br