1. The problem I’m having:
Caddyserver does not use gzip compression any more. It was worked perfect
on Windows 10, using CaddyServer v2.8.9 but now I changed my PC (Windows 11 ) and it does not use gz files any more. There is no Content-encoding in the Response-headers and full js and css files are used, even if there are gz files.
2. Error messages and/or full log output:
3. Caddy version:
I used 2.8.9, 2.9.0 and 2.9.1
4. How I installed and ran Caddy:
a. System environment:
Windows 11
b. Command:
caddy run --config Caddyfile
c. Service/unit/compose file:
d. My complete Caddy config:
:88 {
encode gzip zstd
@static path /js/* /css/* /sync/*
handle @static {
file_server {
precompressed gzip
}
}
handle {
reverse_proxy localhost:4000 localhost:4001 localhost:4002 {
lb_policy least_conn
}
}
log {
output file logfile.log
format console
level ERROR
}
tls ..\pem.crt ..\key.key
}