How do I implement Brotli compression in Apache?

Richard picture Richard · Apr 3, 2016 · Viewed 10.5k times · Source

I read about Broli compression and thought I might as well look into supporting it.

A recent(ish) article that I read mentioned a .br file - so will it be as easy as putting an index.br file alongside my index.html file? Or will supporting it mean recompiling Apache?

Answer

Crami picture Crami · Apr 6, 2016

Here is a quite nice guide how to add support for pre compressed static content to apache with fall-back to gzip

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