# place filter 'DEFLATE' on all outgoing content SetOutputFilter DEFLATE # exclude uncompressible content via file type AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/javascript application/xml # properly handle requests coming from behind proxies Header append Vary User-Agent Header append Cache-Control "public" # Properly handle old browsers that do not support compression BrowserMatch \bMSIE !no-gzip !gzip-only-text/html ExpiresDefault "now plus 1 year"