diff options
author | Kévin Dunglas <[email protected]> | 2024-07-04 22:57:13 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-04 14:57:13 -0600 |
commit | 15d986e1c9decae4d753d7cbec41275264697b2f (patch) | |
tree | f1342fc6389609f216d28be79ef389da61dd5368 /modules/caddyhttp/encode | |
parent | f350e001b6319dd8833fbdb31ffb0ccadb2aa2e0 (diff) | |
download | caddy-15d986e1c9decae4d753d7cbec41275264697b2f.tar.gz caddy-15d986e1c9decae4d753d7cbec41275264697b2f.zip |
encode: Don't compress already-compressed fonts (#6432)
* fix: don't compress already compressed fonts
* fix: remove WOFF
Diffstat (limited to 'modules/caddyhttp/encode')
-rw-r--r-- | modules/caddyhttp/encode/encode.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/caddyhttp/encode/encode.go b/modules/caddyhttp/encode/encode.go index 908e37b35..cf3d17b69 100644 --- a/modules/caddyhttp/encode/encode.go +++ b/modules/caddyhttp/encode/encode.go @@ -112,7 +112,8 @@ func (enc *Encode) Provision(ctx caddy.Context) error { "application/x-ttf*", "application/xhtml+xml*", "application/xml*", - "font/*", + "font/ttf*", + "font/otf*", "image/svg+xml*", "image/vnd.microsoft.icon*", "image/x-icon*", |