Created
April 1, 2013 17:50
-
-
Save positlabs/5286481 to your computer and use it in GitHub Desktop.
.htaccess code to enable gzip compression. Speeds up load time by ~70%!
This file contains hidden or 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
# Add this to your .htaccess file to enable gzip compression. Should speed up load times by ~70% | |
# BEGIN GZIP | |
<ifmodule mod_deflate.c> | |
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/json application/x-javascript application/javascript | |
</ifmodule> | |
# END GZIP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment