Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brotli support #356

Open
ligol opened this issue Aug 14, 2019 · 7 comments
Open

Brotli support #356

ligol opened this issue Aug 14, 2019 · 7 comments

Comments

@ligol
Copy link

ligol commented Aug 14, 2019

Support of Brotli compression on apache and nginx could be nice to have along Gzip and Deflate.

https://httpd.apache.org/docs/2.4/fr/mod/mod_brotli.html
https://github.com/google/ngx_brotli

@RicoFactset
Copy link

Serving brotli compressed files reduce transfer size for HTML, CSS, JS and SVG files better than with GZIP, but not JPG, PNG, WebP, GIFs etc. (binary files). So both (GZIP and Brotli) should be available.

@boboldehampsink
Copy link

Would be very nice to use Brotli

@dzuelke
Copy link
Contributor

dzuelke commented Nov 29, 2022

On heroku-22, mod_brotli should be available.

In a custom HTTPD config include (the -C thing), could you try the following?

LoadModule brotli_module libexec/mod_brotli.so

@boboldehampsink
Copy link

@dzuelke thanks, and on NGINX? (using NGINX in all my projects only)

@dzuelke
Copy link
Contributor

dzuelke commented Nov 29, 2022

Thing there is that it's a commercial Nginx Plus module, or that third-party module maintained by Google. So far, we haven't enabled third party modules for Nginx, since they sometimes get abandoned by the maintainers, and then it would be up to us to figure stuff out. But I'll think about it.

However, there's a new buildpack structure coming with the switch to CNBs, where new specialized web server buildpacks for Nginx and HTTPD will likely improve this, and one thing on the features wishlist is the ability to easily-ish BYO modules.

@dzuelke
Copy link
Contributor

dzuelke commented Nov 29, 2022

(Specifically, that Google-maintained module has a bunch of open, unaddressed issues, and no tagged releases).

@boboldehampsink
Copy link

Thanks for explaining

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants