1. Home
  2. Glossary
  3. Gzip
Server/HTTP

Gzip

A widely supported compression format for text responses. A server compresses the file before sending it, and the browser unpacks it, so less data travels over the network.

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: gzip

Where 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.

← All 66 glossary terms

↑ ↓ to moveEnter to openEsc to closeAll results