Why it matters
Text compresses very well, so enabling gzip cuts transfer size for HTML, CSS and JavaScript without changing the content.
Example
Content-Encoding: gzipWhere you will see it
The free Compression & caching checker looks at this on a live page and explains what it finds in plain English: test Brotli and gzip compression, browser caching and HTTP/2 or HTTP/3, with server config fixes.
Related terms
- Brotli: A compression format for text files such as HTML, CSS and JavaScript.
- HTTP header: A name and value pair sent along with a request or a response.
- Page weight: The total size of all files a browser downloads to show a page: HTML, CSS, JavaScript, images, fonts and more.
Go deeper
- Compression & caching: How gzip and Brotli compression and HTTP caching work, which settings to use for HTML, CSS, JavaScript and images, and how to turn them on in Nginx and Apache.