Skip to content

Instantly share code, notes, and snippets.

@thesaurabhk
Created June 2, 2017 21:39
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 thesaurabhk/ee98a8a01ae6bdb9126fb72f12d66050 to your computer and use it in GitHub Desktop.
Save thesaurabhk/ee98a8a01ae6bdb9126fb72f12d66050 to your computer and use it in GitHub Desktop.
Enable Gzip and DEFLATE Compression (NGINX) https://technumero.com/increase-page-speed-using-htaccess-wordpress/
#
# Paste the following code in the configuration file of your web Nginx server
#
gzip on;
gzip_comp_level 2;
gzip_http_version 1.0;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain text/html text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable "MSIE [1-6].(?!.*SV1)";
gzip_vary on;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment