Compression
Checks for Gzip or Brotli compression
Checks for Gzip or Brotli compression
| Rule ID | perf/compression |
| Category | Performance |
| Scope | Per-page |
| Severity | warning |
| Weight | 6/10 |
Solution
Enable Gzip or Brotli compression on your server to reduce transfer sizes by 60-90%. Most web servers support this via configuration. For nginx: ‘gzip on;’ For Apache: ‘AddOutputFilterByType DEFLATE text/html’. Brotli provides better compression than Gzip for text content.
Enable / Disable
Disable this rule
squirrel.toml
toml[rules]
disable = ["perf/compression"]Disable all Performance rules
squirrel.toml
toml[rules]
disable = ["perf/*"]Enable only this rule
squirrel.toml
toml[rules]
enable = ["perf/compression"]
disable = ["*"]