Skip to content

Instantly share code, notes, and snippets.

@positlabs
Created April 1, 2013 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save positlabs/5286481 to your computer and use it in GitHub Desktop.
Save positlabs/5286481 to your computer and use it in GitHub Desktop.
.htaccess code to enable gzip compression. Speeds up load time by ~70%!
# 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