Gzip HTML files by extension

For me, barebone gzip directive make html files zipped as expected.
But when I try

gzip {
  ext .html
}

or

gzip {
  ext .html .css
}

.html files are served without compression (.css – with). Trying Caddy for the first time, no idea where’s the problem.

This sounds like a bug. Would you mind opening an issue on Github with steps for someone to reproduce this?

https://github.com/mholt/caddy/issues

Sure, thanks. I’ll do that.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.