sttm-web
sttm-web copied to clipboard
Evaluate and add brotli
https://certsimple.com/blog/nginx-brotli
In my own research, brotli is great (20% compression improvement over gzip), however its compression time is pathetic, and is meant to be compiled before hand as opposed to compressing on the fly. If we can support that, then we should definitely go for it, as all modern browsers support it.
I can setup our build process to also produce .br files, which can then be sent to CDN, and nginx can be updated to serve it (brotli-static)
this pretty low priority, especially if you aren't confident in it.
@navdeepsinghkhalsa What can we do to make this happen? We can produce brotli JS assets at build step (webpack plugin) to begin with.
@bogas04 That's great that you are ready for this at the front-end. Just need to evaluate if it's something we want to do. I will take a look after this sprint closes.
20% better compression at no cost. Just that we need to pre-build the files.
@navdeepsinghkhalsa do we still want to do this? please re-assign as needed.
This ticket still valid @ManjotS
@tsingh777 please let us know
@tsingh777
ping @tsingh777
Would like to see if https://github.com/expressjs/compression/pull/172 gets accepted. keep it open at low priority.
This needs more discussion/research and might be even avoidable if we opt for next.js or any other framework.