3 ms·
Apache also supports this, but the configuration is a bit tricky. For all my private websites, I have a setup where the Apache config filters requests based on
by lqet 5y ago
Apache also supports this, but the configuration is a bit tricky. For all my private websites, I have a setup where the Apache config filters requests based on the accepted encoding the client sends. For each file, I have three versions on disk: the raw file, a gzipped version, and a brotli-compressed version. Apache picks and sends the correct one. Not only is the file delivered faster, you can also use a higher compression level (gzip with compression level 9 is too slow to be used on each request).
- lambdadmitry 5y agoYou can also use Zopfli to get a bit higher compression at the expense of longer compression times: https://github.com/google/zopfli https://github.com/google/zopfli