Re:Zstandard – Real-time data compression algorithm
by jacooper on Sunday September 04, 2022 @05:44PM
(#32717988)
I wish Caddy would support brotil, is either gzip or zstd currently.
[ Parent
| on HN ]
Re:Zstandard – Real-time data compression algorithm
by anotherevan on Sunday September 04, 2022 @07:01PM
(#32718576)
Just did some quick research and it looks like you can serve pre-compressed static resources in Brotil. See the precompressed option of the file_server directive[1].
The thinking seems to be due to how CPU intensive it is, Brotil is not favoured for on-the-fly compression[2].
If you're really desperate for it though, you could try [this extension][3].
[1] https://caddyserver.com/docs/caddyfile/directives/file_serve...
Re:Zstandard – Real-time data compression algorithm
by jacooper on Sunday September 04, 2022 @09:00PM
(#32719368)
The extension is not performance focused, so its slow.
Other webservers support it, mainly Nginx. But since Caddy is written in go, they need a native go port which doesn't exist yet.
Re:Zstandard – Real-time data compression algorithm
by anotherevan on Sunday September 04, 2022 @09:06PM
(#32719403)
> The extension is not performance focused, so its slow.
Yeah, hence my "really desperate" qualifier. I probably should have been more explicit.
Re:Zstandard – Real-time data compression algorithm
by BackBlast on Sunday September 04, 2022 @06:39PM
(#32718434)
Caddy 2 supports brotli static compression out of the box, I ran a test on it just last week with this exact configuration. Dynamic, I'm not sure. That use case doesn't interest me as much.