Skip to main content

Accept-Encoding

RequestActive

The Accept-Encoding header tells the server which compression algorithms the client supports. The server uses this to compress the response body, reducing transfer size. Common values are gzip, br (Brotli), and zstd.

Accept-Encoding: gzip, deflate, br, zstd

Description

The Accept-Encoding request header indicates which content encodings (usually compression algorithms) the client can understand. The server uses this to decide which encoding to apply to the response body.

Examples

Modern browser
http
Accept-Encoding: gzip, deflate, br, zstd

Related

Specification

RFC 9110Accept-Encoding specification →