A simple example of Nginx gzip compression configuration this article introduces a simple example of gzip compression configuration in nginx, a core configuration section code for your reference. It is easy to configure gzip compression in nginx, just a few lines of code are required. Gzip compression can reduce website bandwidth consumption and increase access speed. For the configuration section of gzip compression, see: # output compression saves bandwidthgzip on; gzip_http_version 1.1; gzip_vary on; gzip_comp_level 6; gzip_proxied any; gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml + rss text/javascript; # make sure gzip does not lose large gzipped js or css files # edit by www. jbxue. comgzip_buffers 16 8 k; # Disable gzip for certa In browsers.gzip _ disable "MSIE [1-6]. (?!. * SV1 )";