Closed lidel closed 2 years ago
Are we able to enable it on some gateways to evaluate the impact?
We are. Looks like it will involve compiling a custom nginx build, but not too difficult. Alternatively, OpenResty (which we have briefly used in the past as a drop-in replacement for nginx) comes with Brotli pre-installed.
good and bad news.
Good news: It appears the brotli nginx module is under active-ish development again, after being in hiatus for a while.
Bad news: OpenResty no longer ships brotli support out of the box. We will have to build our own.
Although, asking them to include brolti support upstream is also an option.
status:
Something I discovered when playing with http-compression-check.sh : when asking for the same HTML file (Vincent_van_Gogh.html) from
ipfs.io
andcloudflare-ipfs
, the latter will consume less bandwidth:ipfs.io/ipfs/
cloudflare-ipfs.com/ipfs/
I wonder, how gateway cpu/bandwidth utilization would change if we added support for brotli? Are we able to enable it on some gateways to evaluate the impact?
References