Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 10:45 UTC
encode: Don't compress already-compressed fonts (#6432)
* fix: don't compress already compressed fonts * fix: remove WOFF
Kévin Dunglas committed
Jul 4, 2024 at 22:57 UTC
15d986e1c9decae4d753d7cbec41275264697b2f
1 file changed
+2
-1
modules/caddyhttp/encode/encode.go
+2
-1
@@ -112,7 +112,8 @@ func (enc *Encode) Provision(ctx caddy.Context) error {
112
"application/x-ttf*",
113
"application/xhtml+xml*",
114
"application/xml*",
115
- "font/*",
115
+ "font/ttf*",
116
+ "font/otf*",
117
"image/svg+xml*",
118
"image/vnd.microsoft.icon*",
119
"image/x-icon*",