PDA

View Full Version : AddOutputFilterByType and BrowserMatch Directives


Dan06
06-12-2009, 06:23 PM
I'm trying to configure my apache web server to deflate web components. I've taken the following steps, but the web server does not deflate the components; anyone know what I'm doing wrong/missing?


Loaded module: LoadModule deflate_module modules/mod_deflate.so
Added:
BrowserMatch ^MSIE [6-9] gzip
BrowserMatch ^Mozilla/[5-9] gzip

AddOutputFilterByType text/html

AddOutputFilterByType text/css

AddOutputFilterByType application/x-javascript
Restarted apache web server

schleppel
06-17-2009, 12:35 AM
Try
AddOutputFilter gzip html htm js css
instead of
AddOutputFilterByType text/html
AddOutputFilterByType text/css
AddOutputFilterByType application/x-javascript