Re:Ways to reduce the costs of an HTTP(S) API on AWS
by pragnesh on Friday December 13, 2019 @11:49AM
(#21783158)
"accept-encoding: gzip" header is request header. why it is present in unoptimized response in first place ?
[ Parent
| on HN ]
Re:Ways to reduce the costs of an HTTP(S) API on AWS
by mhenoch on Friday December 13, 2019 @12:05PM
(#21783299)
It was added as part of a bug fix five years ago: the server was looking at the Content-Type request header instead of Content-Encoding to determine whether the incoming payload was compressed. Not sure why the Accept-Encoding response header was added as the same time, but it went undetected since it didn't cause any problems (apart from costing money).