My old server is running Apache 2.2. It has mod_deflate enabled. It was a pretty easy setup, you just un-comment the LoadModule
line, and then add the following:
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/javascript application/javascript text/css application/xml image/svg+xml
But now I'm setting up a new server running Apache 2.4 This isn't working in 2.4 and I'm not sure why. Everything seems to be enabled and configured correctly.
BUT I also read that using AddOutputFilterByType
is deprecated anyway. So, what are the alternate/better ways to enable this on-the-fly compression? I suppose if I could easily enable based on file extension, that would work just as good.