Simple Example of Nginx configuration gzip Compression

Source: Internet
Author: User

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 )";

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.