# How to enable Brotli or gzip compression

> Text files shrink by 70–90 % when compressed on the server. It is one setting in nginx, Apache or your CDN.

Best practices · HTML version: https://getreport.app/learn/compression

## Text compression

Passing looks like: Text files are compressed.

**Why it matters.** HTML, CSS and JavaScript shrink by 70–90% with gzip or Brotli. Sending them uncompressed wastes visitors' data and seconds, especially on mobile.

**How to fix it.**

1. Enable Brotli (or gzip) for text types in your server, hosting panel or CDN; Cloudflare and most hosts have it as one switch.
2. Check the files in the technical detail; third-party ones need the vendor to fix it.

Check your own page: https://getreport.app/
