Created
January 27, 2019 20:16
-
-
Save macariojames/b85cf06348f64b9b8ad6070e108e0cd2 to your computer and use it in GitHub Desktop.
For gzip compression - Add to Apache conf file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Directory /var/www/html/> | |
<IfModule mod_mime.c> | |
AddType application/x-javascript .js | |
AddType text/css .css | |
</IfModule> | |
<IfModule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/plain text/xml application/javascript | |
<IfModule mod_setenvif.c> | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4.0[678] no-gzip | |
BrowserMatch bMSIE !no-gzip !gzip-only-text/html | |
</IfModule> | |
</IfModule> | |
Header append Vary User-Agent env=!dont-vary | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment