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 <noreply@anthropic.com>
This commit is contained in:
xfy 2026-04-30 14:24:23 +08:00
parent 8cc3fdef6f
commit e32e96ee81

View File

@ -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",