2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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.
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
Yes we are using Chrome, the request header sent is
Accept-Encoding: gzip, deflate, br