How to implement Brotli compression in Apache?

I read about Broli compression and thought that I could look into its support.

A recent article (ish) I read mentioned a .br file - so would it be easier how to put an index.br file with my index.html file? Or will it mean recompiling Apache?

+5
source share
3 answers

Here is a good guide on how to add support for pre-compressed static content in apache with rollback back to gzip

https://lyncd.com/2015/11/brotli-support-apache/

+2
source

You can use Apache module brotli_module by kjdev , which works well for me.

You can also check out the new Apache mod_brotli patch as suggested by Aeyoun . I have not tried it myself.

+4
source

Brotli support was simply added as mod_brotli on the Apache trunk , making Apache the first Brotli-enabled web server. Give it some time and you can just turn on the Brotli output filter, as you would gzip and deflate in Apache. If you are impatient, you can use the third-party brotli_module suggested by Joe; or cherry, select a new mod_brotli patch from the trunk and apply it to the 2.4.x installation.

+4
source

Source: https://habr.com/ru/post/1246340/


All Articles