GITv

Compress pages in Caddy

Browse files

Diff and source pages can run to megabytes of HTML. Caddy now compresses responses with zstd or gzip; its default type list leaves git packs, fonts and images alone. The Account page's form token shares its page with nothing a visitor can echo, so BREACH doesn't apply. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Author
Um9i vulgarmessiah@gmail.com
Date
22 Nov 2026, 16:19
Commit
a50b86391a3e
Parent
e5e8041

1 file changed +6−0

@@ -14,5 +14,11 @@ git.um9i.dev {
format json
}
# Pages, diffs and source compress well. Caddy's default list of types leaves git packs,
# fonts and images alone, since they are compressed already. The one secret in any page
# (the Account page's form token) shares the page with nothing a visitor can echo into it,
# so compression can't be used to guess it (BREACH).
encode zstd gzip
reverse_proxy 127.0.0.1:8080
}