From fb1de4f0793f7c1f656d200925fc51d6a70d59b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gra=CC=88fenstein?= Date: Sun, 22 Mar 2026 20:26:03 +0100 Subject: [PATCH] limit Caddy compression to text content types to fix slow file downloads Caddy was compressing all responses including binary file downloads (PDFs, images, videos), which severely throttled download speed to ~130KB/s despite 30MB/s VPS bandwidth. Now only compresses text-based types (HTML, CSS, JS, JSON, XML, SVG) where compression actually helps. --- caddy/Caddyfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/caddy/Caddyfile b/caddy/Caddyfile index d84aa71..88d6d30 100644 --- a/caddy/Caddyfile +++ b/caddy/Caddyfile @@ -9,7 +9,17 @@ } nextcloud.t-gstone.de { - #encode zstd gzip + encode zstd gzip { + match { + header Content-Type text/* + header Content-Type application/javascript* + header Content-Type application/json* + header Content-Type application/xml* + header Content-Type application/rss* + header Content-Type application/atom* + header Content-Type image/svg* + } + } reverse_proxy nextcloud-nginx:80