2 réponses
- Le plus récent
- Le plus de votes
- La plupart des commentaires
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.
répondu il y a un an
Contenus pertinents
- demandé il y a un an
- Réponse acceptéedemandé il y a 8 mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Yes we are using Chrome, the request header sent is
Accept-Encoding: gzip, deflate, br