I have installed mod_brotli on my WHM server via easyapache 4 – html, css, js files etc are all being compressed.
I then came across this in the offocial docs – https://httpd.apache.org/docs/2.4/mod/mod_brotli.html#precompressed
I have since added this to my Post VirtualHost include file in WHM (post_virtualhost_global.conf) instead of htaccess as I want this to be server wide.
How can I verify if this is working and indeed serving precompressed files? I haven’t found anything to say either way, I can only confirm that brotli compression is in use. CPU loads are near enough the same with or without the include so I suspect it may not be saving the compressed files for next time.
This is the virtual host include:
this is my /etc/apache2/conf.2/brotli.conf
and this is /etc/apache2/conf.modules.d/115_mod_brotli.conf
# Enable mod_brotli LoadModule brotli_module modules/mod_brotli.so
So if anyone can help me figure out how to confirm if the files are precompressed or not that would be great.
Edit: I don’t think my files are being pre-compressed. Does anyone have any further info about this? I cannot find any further posts or docs on it at akk