Back to Linter
Infoperformance

Brotli Compression Disabled

Brotli vs gzip — why Brotli offers better compression for web content.

What This Rule Checks

This rule checks if Brotli compression is enabled alongside SSL (Brotli is typically served over HTTPS).

Why It Matters

Brotli offers 15-25% better compression ratios than gzip for text content. Developed by Google, it's supported by all modern browsers. It's especially effective for static assets.

Bad — Triggers this rule

server {
    listen 443 ssl http2;
    gzip on;
    # No brotli — missing 15-25% compression improvement
}

Good — Passes this rule

server {
    listen 443 ssl http2;
    gzip on;
    brotli on;
    brotli_types text/plain text/css application/json application/javascript;
}

How to Fix

Enable Brotli in Configen's Performance section. Note: Brotli requires the `ngx_brotli` module to be compiled into Nginx.

Related Rules

Check your config now

Paste your nginx.conf and get instant feedback on 20+ rules.

Open Linter →