gzip 通用压缩方式

brotli 转为http 开发的压缩方式

有协商过程, 在不支持的浏览器里专用gzip

我猜, 针对性的优势就是, 在这个领域特定的词汇, 可以放心编码

比如cach-control, 可以编码为1, 这就可以提高压缩比

同样的资源, brotli 压缩后更小

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/74d8ffa5-ac2d-4dda-b620-89fe30375136/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1ef467d4-8289-4be2-941b-0880d6326f00/Untitled.png

参考

Brotli vs Gzip Compression. How we improved our latency by 37%

https://medium.com/oyotech/how-brotli-compression-gave-us-37-latency-improvement-14d41e50fee4

https://zh.wikipedia.org/wiki/Brotli

https://github.com/google/brotli