I use the following quip on a htaccess file to enable compression on a GoDaddy server;
####################
# GZIP COMPRESSION #
####################
SetOutputFilter DEFLATE
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip
This is a quip I've taken from another question on StackOverflow a long time ago. Up until recently this worked perfectly. Now it simply refuses to work, despite mod_deflate being enabled on WHM, websites like https://checkgzipcompression.com/ will tell me that the website isn't compressed. I cannot enable compression on this server unless I use ob_gzhandler in PHP as follows;
if(!ob_start("ob_gzhandler")) ob_start();
This isn't an optimal solution.
I have a VPS on which I have a fairly similar apache/php installation, and it hosts the same version of the website hosted on the GoDaddy server, having the exact same files, including the htaccess with the gzip compression quip, and it works without requiring ob_gzhandler.
I've tried contacting GoDaddy, but they have been most unhelpful telling me to "verify the htaccess" instead of doing anything, and I've considered migrating my entire installation to another service provider.
Is there anything extra I should verify?