Caddy does not compress the response

The problem is that you used route which forces directive order, then put encode after php_fastcgi, so the encoder is never enabled before php_fastcgi.

In your case, there’s no reason to use route. Remove that.

1 Like