PageSpeed Matters
    Speed Audit
    Let's Talk
    PageSpeed Matters
    Book a Call
    Optimization Techniques · Glossary

    Compression (Brotli / Gzip)

    Matt SuffolettoWritten by Matt Suffoletto
    Published June 26, 2026
    Compression (Brotli / Gzip)
    Share

    TL;DR

    Compression is the encoding of text-based responses (HTML, CSS, JavaScript, JSON, SVG) using an algorithm such as Brotli or Gzip so that the server transmits a smaller payload that the browser decompresses on receipt.

    What is Compression (Brotli / Gzip)?

    Compression is the encoding of text-based responses (HTML, CSS, JavaScript, JSON, SVG) using an algorithm such as Brotli or Gzip so that the server transmits a smaller payload that the browser decompresses on receipt.

    Learn more in our how to improve compression guide, or work with us through our done-for-you speed optimization service.

    How Compression (Brotli / Gzip) is Measured

    The Content-Encoding response header indicates which algorithm is in use, and Lighthouse audits 'Enable text compression'.

    Related Terms

    Sources