How to enable server-level compression (Brotli & Gzip) Print

  • 0

Overview

Your hosting includes LiteSpeed/OpenLiteSpeed, which supports Brotli (best) and Gzip (fallback). Compression reduces file size and improves loading speed.

Step 1 — Enable Brotli in Cloudflare

  1. Log in to Cloudflare
  2. Go to Speed → Optimization
  3. Enable:
    • Brotli
    • Auto Minify
    • Polish (if you have Pro)

Step 2 — Check that Gzip is enabled on your server

LiteSpeed includes Gzip by default. To confirm:

Step 3 — Enable LSCache (required)

Compression works best with LiteSpeed Cache:

  • Page optimization
  • HTML/CSS/JS minify
  • Browser caching

Step 4 — Add compression headers manually (optional)

If needed, add these to .htaccess:

RewriteEngine On
CacheLookup on

Benefits

  • Smaller page sizes
  • Faster loading
  • Better PageSpeed Insights scores

Was this answer helpful?

« Back