Content-Encoding
Specifies the compression algorithm applied to the response body, such as gzip or brotli.
Syntax
Content-Encoding: gzip | br | deflate | identity
Example
Content-Encoding: gzip
Description
Content-Encoding indicates the compression algorithm applied to the response. The browser decompresses content before processing.
Common values: gzip (widely supported), br (Brotli, better compression), deflate (legacy). Selected based on Accept-Encoding.
Compression reduces transfer sizes by 60-80% for text resources. Enable both gzip and Brotli for optimal results.
How real sites send this header
Home-page responses of 503 popular sites from the enterno.io /check catalogue, checked in the last 30 days.
84.9%
(427 of 503) send Content-Encoding.
Most common values:
gzip— 241 sitesbr— 164 siteszstd— 21 sites
See it on: google.com, yandex.ru, discord.com, github.com, habr.com
Check if your website sends this header correctly
Check your headers →