// http header · request header
Accept-Encoding
Content encodings the client accepts
What the Accept-Encoding header does
Accept-Encoding lists the compression algorithms the client understands, like gzip and br (Brotli). The server compresses the body with one of them and names its choice in the Content-Encoding response header, cutting transfer size significantly.
Example
Accept-Encoding: gzip, brWhere it's used
Accept-Encoding is a request header. Request headers are sent by the client to describe the request and what the client can accept.