(Are you asking for help with using Caddy? Please use our forum instead: https://forum.caddyserver.com. If you are filing a bug report, please answer the following questions. If your issue is not a bug report, you do not need to use this template. Either way, please consider donating if we've helped you. Thanks!)
caddy -version
)?0.9.4
I'm trying to serve .br versions of my files, when both .gz and .br files are present.
(Put Caddyfile here)
Not applicable (I don't think)
Using https://github.com/ZZROTDesign/alpine-caddy
In the response headers of my website I expected to see content-encoding: br and a file size of 63 Kilobytes
I see content-encoding: gzip and a file size of 78 Kilobytes.
Not sure if the new .br and .gz functionality prefers .br over .gz if the filesize is smaller - it seems as if it is defaulting to gz all the time. If someone could point me in the direction, I could definitely try to tackle this soon.
Brotli encoding is always prefered over gzip. If .gz and .br files exist - br should be delivered to the client (if Accept-Encoding: br is present in the headers) - file sizes does not matter at all.
Please attach full communication between client and Caddy - request and response headers + listing of relevant files in the root fs
My mistake - Just realized that I didn't properly update my docker image that was running my website while all others were updated. Sorry about that! Appreciate the help!
Thx @Skilgarriff :)
Most helpful comment
My mistake - Just realized that I didn't properly update my docker image that was running my website while all others were updated. Sorry about that! Appreciate the help!