php - htaccess mod_deflate does not work on shared server -


I am developing a website in PHP and I have large JS files which I want to abbreviate. Therefore, I added it to my .htaccess file:

  & lt; Files match ". (Js | css | html | php | xml) $" & gt; SetOutputFilter DEFLATE & lt; / FilesMatch & gt;  

This works very well on my local VM server, but once I transfer the files to my shared server, the DEFLATE command does not work. I do not know why ... mod_deflate is enabled on the webserver, as well as bz2, gzip I have user access to htaccess, i have cheched ... plus that i have other rules and commands running in htaccess then DEFLATE is the only one which does not work ... does anyone know that it is on my local host Why work and not even on my webserver?

Any thoughts?

Thank you!

Are you sure that mod_deflate is loaded and available? Apache does not make any errors if you set it as a filter.

You can see which modules have been loaded.


Comments