Gzip does not work any more

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
}

5. Links to relevant resources:

There may be a conflict going on since you’re using encode AND precompressed. These are the details on precompressed.

If you are still having problems, give us the Caddy logs. You’ll need to add the global option debug before.

Hello
I removed precompressed and it still does not work. I’m focused on 2 files, all.js and all.css.
For both files, I have gz archive and like said, same Caddyfile worked on Windows 10.
log file is here:
http://simplest.icu/logfile.log.txt
Thank you for your help.

Can you please upload your Caddy logs?

I uploaded it there
I don’t know how to upload it right here.