{
    "title": "The HTML is not compressed",
    "description": "The server sends the page without gzip or Brotli, so it is several times bigger on the way than it needs to be.",
    "url": "https://ursy.com/issues/html-not-compressed/",
    "canonical": "https://ursy.com/issues/html-not-compressed/",
    "markdown": "https://ursy.com/issues/html-not-compressed/index.md",
    "json": "https://ursy.com/issues/html-not-compressed/index.json",
    "published": "2026-11-29T21:57:24+00:00",
    "updated": "2026-11-30T12:53:04+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY.com",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY.com and link https://ursy.com/issues/html-not-compressed/",
    "start_here": {
        "page": "https://ursy.com/issues/html-not-compressed/",
        "markdown": "https://ursy.com/issues/html-not-compressed/index.md",
        "json": "https://ursy.com/issues/html-not-compressed/index.json",
        "cite": "Name URSY.com and link the page you used.",
        "doors": {
            "llms_txt": "https://ursy.com/llms.txt",
            "facts": "https://ursy.com/facts.json",
            "mcp": "https://ursy.com/mcp/",
            "openapi": "https://ursy.com/.well-known/openapi.json"
        }
    },
    "issue": {
        "slug": "html-not-compressed",
        "problem": "The HTML is not compressed",
        "summary": "The server sends the page without gzip or Brotli, so it is several times bigger on the way than it needs to be.",
        "status": "Live",
        "priority": "low",
        "category": "speed",
        "category_title": "Speed and caching",
        "why_it_matters": [
            "Text such as HTML, CSS and JavaScript usually shrinks to a fraction of its size with gzip or Brotli compression. Browsers and the main crawlers ask for it on every request. Without it, pages take longer to arrive, most of all on phones.",
            "Compression costs almost nothing and is usually a single setting on the server or CDN, so it is one of the easiest speed fixes there is."
        ],
        "how_to_fix": [
            "Switch on gzip or Brotli for text files in your hosting panel, server settings or CDN. On Apache this is mod_deflate or mod_brotli; on nginx it is gzip on. Many caching plugins can also do it.",
            "There is no need to compress images, video or fonts that are already compressed. Check the Content-Encoding header with the HTTP Header Checker."
        ],
        "steps": [],
        "check_it_is_fixed": "Run the URSY.com HTTP Header Checker again: the page should answer with Content-Encoding: gzip or br.",
        "found_by": [
            {
                "tool": "http-header-checker",
                "name": "HTTP Header Checker",
                "status": "Live",
                "page": "https://ursy.com/http-header-checker/",
                "card": "https://ursy.com/http-header-checker.json"
            },
            {
                "tool": "seo-checker",
                "name": "SEO Checker",
                "status": "Live",
                "page": "https://ursy.com/seo-checker/",
                "card": "https://ursy.com/seo-checker.json"
            }
        ],
        "full_record": "https://ursy.com/wp-json/ursy/v1/issues/html-not-compressed",
        "source": {
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Compression",
            "title": "MDN: Compression in HTTP"
        },
        "cite": "The HTML is not compressed. URSY.com. https://ursy.com/issues/html-not-compressed/"
    },
    "headings": [
        {
            "level": 2,
            "text": "Why it matters",
            "id": "why-it-matters",
            "url": "https://ursy.com/issues/html-not-compressed/#why-it-matters"
        },
        {
            "level": 2,
            "text": "How to fix it",
            "id": "how-to-fix-it",
            "url": "https://ursy.com/issues/html-not-compressed/#how-to-fix-it"
        },
        {
            "level": 3,
            "text": "What the problem looks like",
            "id": "what-the-problem-looks-like",
            "url": "https://ursy.com/issues/html-not-compressed/#what-the-problem-looks-like"
        },
        {
            "level": 3,
            "text": "What it looks like fixed",
            "id": "what-it-looks-like-fixed",
            "url": "https://ursy.com/issues/html-not-compressed/#what-it-looks-like-fixed"
        },
        {
            "level": 2,
            "text": "Fix it with your AI assistant",
            "id": "fix-it-with-your-ai-assistant",
            "url": "https://ursy.com/issues/html-not-compressed/#fix-it-with-your-ai-assistant"
        },
        {
            "level": 2,
            "text": "Fix it on your platform",
            "id": "fix-it-on-your-platform",
            "url": "https://ursy.com/issues/html-not-compressed/#fix-it-on-your-platform"
        },
        {
            "level": 3,
            "text": "WordPress",
            "id": "wordpress",
            "url": "https://ursy.com/issues/html-not-compressed/#wordpress"
        },
        {
            "level": 3,
            "text": "Your server or hosting",
            "id": "your-server-or-hosting",
            "url": "https://ursy.com/issues/html-not-compressed/#your-server-or-hosting"
        },
        {
            "level": 3,
            "text": "Your CDN (for example Cloudflare)",
            "id": "your-cdn-for-example-cloudflare",
            "url": "https://ursy.com/issues/html-not-compressed/#your-cdn-for-example-cloudflare"
        },
        {
            "level": 2,
            "text": "Check it is fixed",
            "id": "check-it-is-fixed",
            "url": "https://ursy.com/issues/html-not-compressed/#check-it-is-fixed"
        },
        {
            "level": 2,
            "text": "Official source",
            "id": "official-source",
            "url": "https://ursy.com/issues/html-not-compressed/#official-source"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/issues/html-not-compressed/#questions"
        },
        {
            "level": 3,
            "text": "gzip or Brotli: which is better?",
            "id": "gzip-or-brotli-which-is-better",
            "url": "https://ursy.com/issues/html-not-compressed/#gzip-or-brotli-which-is-better"
        },
        {
            "level": 3,
            "text": "Does compression slow the server down?",
            "id": "does-compression-slow-the-server-down",
            "url": "https://ursy.com/issues/html-not-compressed/#does-compression-slow-the-server-down"
        }
    ],
    "links": [
        {
            "text": "HTML",
            "url": "https://ursy.com/wiki/html/",
            "internal": true
        },
        {
            "text": "CSS",
            "url": "https://ursy.com/wiki/css/",
            "internal": true
        },
        {
            "text": "CDN",
            "url": "https://ursy.com/wiki/cdn/",
            "internal": true
        },
        {
            "text": "caching",
            "url": "https://ursy.com/wiki/caching/",
            "internal": true
        },
        {
            "text": "HTTP",
            "url": "https://ursy.com/wiki/http/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "MDN: Compression in HTTP",
            "url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Compression",
            "internal": false
        }
    ],
    "words": 596,
    "text": "The server sends the page without gzip or Brotli, so it is several times bigger on the way than it needs to be. Why it matters Text such as HTML, CSS and JavaScript usually shrinks to a fraction of its size with gzip or Brotli compression. Browsers and the main crawlers ask for it on every request. Without it, pages take longer to arrive, most of all on phones. Compression costs almost nothing and is usually a single setting on the server or CDN, so it is one of the easiest speed fixes there is. How to fix it Switch on gzip or Brotli for text files in your hosting panel, server settings or CDN. On Apache this is mod_deflate or mod_brotli; on nginx it is gzip on. Many caching plugins can also do it. There is no need to compress images, video or fonts that are already compressed. Check the Content-Encoding header with the HTTP Header Checker. What the problem looks like GET / HTTP/1.1 Host: www.example.com Accept-Encoding: gzip, br HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Length: 412000 The browser asks for gzip or Brotli, but the page arrives at full size with no Content-Encoding. What it looks like fixed HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 Content-Encoding: br Vary: Accept-Encoding Brotli compression, with Vary so caches keep compressed and plain copies apart. Fix it with your AI assistant Paste this into ChatGPT, Claude, Gemini or your coding agent, and fill in the words in square brackets: The HTML of my website [your website address], built with [your platform, e.g. WordPress on nginx], is sent without gzip or Brotli compression. First fetch [the page address] with the header Accept-Encoding: gzip, br, or ask me to paste the response headers, and explain plainly whether Content-Encoding is missing, and whether a CDN, the web server or PHP is sending the page. Also check CSS and JavaScript files. Then give me the smallest change that turns on compression for text types only: HTML, CSS, JavaScript, JSON, SVG and XML, with Vary: Accept-Encoding. Show the exact lines for my server (Apache mod_deflate or mod_brotli, nginx gzip on with gzip_types) or the plugin, hosting or CDN setting. Rules: back up config files first, do not compress images, video or fonts that are already compressed, do not compress twice, test the server config before reloading, and keep page addresses the same. Say exactly where the lines go. Then tell me to re-check with the URSY.com HTTP Header Checker at ursy.com/http-header-checker/. Fix it on your platform WordPress Many caching plugins have a gzip option. If yours does not, ask your host or turn it on in the server or CDN settings. Your server or hosting On Apache, enable mod_deflate (or mod_brotli) with AddOutputFilterByType DEFLATE text/html text/css application/javascript. On nginx, set gzip on; and list the text types in gzip_types. Your CDN (for example Cloudflare) Cloudflare and most CDNs compress text files for visitors. Check the CDN is not set to pass the origin answer through unchanged. Check it is fixed Run the URSY.com HTTP Header Checker again: the page should answer with Content-Encoding: gzip or br. Official source MDN: Compression in HTTP Questions gzip or Brotli: which is better? Brotli usually makes text files a little smaller. Either is far better than none, and many servers offer both. Does compression slow the server down? It uses a little processing, but the saving in transfer time is usually far bigger. Caches can keep compressed copies ready.",
    "source": "https://ursy.com/issues/html-not-compressed/"
}