From e32e96ee816727bb7141a4a87e493e04a0c58f74 Mon Sep 17 00:00:00 2001 From: xfy Date: Thu, 30 Apr 2026 14:24:23 +0800 Subject: [PATCH] feat(config): change gzip_static default to true Enable pre-compressed file serving by default for better performance. This aligns with the common practice of serving .gz/.br files when available. Co-Authored-By: Claude Opus 4.7 --- internal/config/defaults.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/defaults.go b/internal/config/defaults.go index eeca0cc..5116e8f 100644 --- a/internal/config/defaults.go +++ b/internal/config/defaults.go @@ -145,7 +145,7 @@ func DefaultConfig() *Config { Type: "gzip", Level: 6, MinSize: 1024, - GzipStatic: false, + GzipStatic: true, GzipStaticExtensions: []string{".br", ".gz"}, Types: []string{ "text/html",