3 ms·
Gzip was written extremely well. I have been trying to get static compression with Brotli working for compressing web assets, along the way of getting that work
by Theodores 4y ago
Gzip was written extremely well. I have been trying to get static compression with Brotli working for compressing web assets, along the way of getting that worked out, you realise that few people can be bothered with it, hence you are having to compile your own Nginx modules.
I found out the way to do it was to have Nginx run a proxy server that caches the output of another Nginx 'server' that does the Brotli dialled up to 11. So you are making your own CDN.
Nothing is difficult when you know it, but Gzip has scratched the compression itch so well that people just do not have a problem with it and therefore do not seek to change it.
- silvestrov 4y agoThere is also the cost of a bug. Imagine that AWS corrupted customers data due to a compression bug in your home-grown compression code. It is almost like encryption in this regard.
- londons_explore 4y agoLuckily by adding a checksum of pre-compression data it's very easy to catch bugs before they do widespread silent damage.