opennem / opennem-fe

An Open Platform for National Electricity Market Data
https://opennem.org.au
MIT License
63 stars 11 forks source link

prioritise brotli compression over gzip #126

Open simonhac opened 2 years ago

simonhac commented 2 years ago

currently brotli is the least preferred encoding:

image

please work out how to coax the browser into requesting: accept-encoding: br, gzip, deflate

chienleng commented 2 years ago

it looks like axios (FE module to make Ajax calls) doesn’t have built in support brotli decompression: https://github.com/axios/axios/issues/3284

A way to make it work: https://github.com/axios/axios/issues/1635#issuecomment-603258750

simonhac commented 2 years ago

looks pretty cumbersome, given that it's supported by > 96% of all browser traffic.

image