diff --git a/caddyhttp/httpserver/plugin.go b/caddyhttp/httpserver/plugin.go index 8105a57a9fe..e8015528734 100644 --- a/caddyhttp/httpserver/plugin.go +++ b/caddyhttp/httpserver/plugin.go @@ -410,6 +410,9 @@ var directives = []string{ "gzip", "header", "errors", + "filter", // github.com/echocat/caddy-filter - Required at this position because if it is + // enabled it captures the response of following + // middlewares and modifies it. "minify", // github.com/hacdias/caddy-minify "ipfilter", // github.com/pyed/ipfilter "ratelimit", // github.com/xuqingfeng/caddy-rate-limit @@ -438,7 +441,6 @@ var directives = []string{ "hugo", // github.com/hacdias/caddy-hugo "mailout", // github.com/SchumacherFM/mailout "awslambda", // github.com/coopernurse/caddy-awslambda - "filter", // github.com/echocat/caddy-filter } const (