Skip to content

Instantly share code, notes, and snippets.

@jpmarchand
Last active September 7, 2016 00:34
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 jpmarchand/a7cb3e53ee540adb527e to your computer and use it in GitHub Desktop.
Save jpmarchand/a7cb3e53ee540adb527e to your computer and use it in GitHub Desktop.
Enable gZIP compression. Code snippet to add in .htaccess file. Source: https://www.siteground.com/tutorials/wordpress/optimize_wordpress.htm
## ENABLE GZIP COMPRESSION ##
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
## ENABLE GZIP COMPRESSION ##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment