Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
compress assets with brotli as well as gzip #71
Brotli is a new compression method that produces smaller files than gzip. It's well supported by browsers.
It should be possible to compress the webroot directory with both gzip and brotli; store both versions in the generated
The main C brotli encoder/decoder has a CGO wrapper here: https://github.com/google/brotli/tree/master/go
Thanks for posting this this feature request.
Doing that has a trade-off of making the generated assets file roughly 2x larger.
As a result, it might be preferable to make it an option (generate gzip only, generate Brotli only, generate both, and maybe some other combinations).
This decision is worth thinking about more. I want to make sure there aren't some other unexpected implications when going from 1 compression algorithm to more than 1.
At this time, I don't expect to have the time to work on this soon.