I would like to use Brotli compression for my node application built on express. I deliver content (HTML, CSS and JS) with app.use(express.static('public'))
.
I have found the shrink-ray
module which does Brotli compression perfectly. However, when I install it and run the nsp check
from the node security platform module, I get security vulnerabilities, which makes it impossible to use in my project.
Does anyone know a good alternative to enable Brotli compression on a node app using express? I´ve tried express-static-gzip
but didn´t manage to make it work, it was still gzipped even on a simple tutorial.
The new shrink-ray-current
module is an alternative that works with updated dependencies.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With