CallMeTechie
DE Login
Home Products Blog About Contact

Enable Compression

🚀 Installation & Setup · Updated 3 weeks ago

Enable Compression

Compresses HTTP responses with Gzip and Zstd — reduces transferred data by 60-80% for text content like HTML, CSS, JavaScript, and JSON.

Before / After

Without: Client  ←  500 KB HTML  ←  Caddy  ←  Backend
With:    Client  ←  120 KB gzip  ←  Caddy  ←  500 KB HTML  ←  Backend (76% saved)

Algorithms

AlgorithmBrowser SupportCompression
ZstdChrome 123+, Firefox 112+Better & faster
GzipAll browsersGood, standard

Typical Savings

Content-TypeSavings
HTML75-80%
CSS82-86%
JavaScript76-81%
JSON85-89%
Images (PNG, JPEG)~2% (not recommended)

Setup

  1. Create or edit route
  2. Enable Compression toggle
  3. Save — Gzip and Zstd are automatically active

Important Notes

  • Not recommended for already compressed content (images, videos, archives, WOFF2)
  • If the backend already compresses, Caddy does not double-compress
  • Only available for HTTP routes

Cookie Settings

We use cookies to improve your experience. Essential cookies are always active.

Privacy Policy
ESC
↑↓ navigate open esc close