ah you’re right in that Caddy isn’t gzip compressing the response, with Vary header removed I see
curl -Ik -H "Accept-Encoding: gzip" https://caddy.domain.com:4444/caddy-index.html
HTTP/1.1 200 OK
Accept-Ranges: bytes
Content-Length: 12226
Content-Type: text/html; charset=utf-8
Etag: "q9xapl9fm"
Last-Modified: Wed, 06 May 2020 18:44:09 GMT
Server: Caddy
X-Content-Type-Options: nosniff
X-Powered-By: caddy centminmod
X-Xss-Protection: 1; mode=block
Date: Fri, 08 May 2020 18:01:38 GMT
it’s working on Nginx via curl
curl -Ik -H "Accept-Encoding: gzip" https://ngx.domain.com/caddy-index.html
HTTP/1.1 200 OK
Date: Fri, 08 May 2020 18:02:58 GMT
Content-Type: text/html; charset=utf-8
Last-Modified: Wed, 06 May 2020 18:44:09 GMT
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"5eb30579-2fc2"
Server: nginx centminmod
X-Powered-By: centminmod
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Encoding: gzip
so my Caddyfile above with encode gzip
isn’t working ?