About the configuration of nginx configuration file gzip: Not quite understand what the role of this gzip_proxied, should be how to properly configure it?

Source: Internet
Author: User
About the configuration of nginx configuration file gzip: Not quite understand what the role of this gzip_proxied, should be how to properly configure it?

The official notes are as follows:
Syntax:gzip_proxied off | Expired | No-cache | No-store | Private | no_last_modified | No_etag | Auth | Any ...;
Default:gzip_proxied off;
Context:http, Server, location

Reply content:

About the configuration of nginx configuration file gzip: Not quite understand what the role of this gzip_proxied, should be how to properly configure it?

The official notes are as follows:
Syntax:gzip_proxied off | Expired | No-cache | No-store | Private | no_last_modified | No_etag | Auth | Any ...;
Default:gzip_proxied off;
Context:http, Server, location

The Lord said so, should be right gzip_comp_level , gzip_types and gzip_vary so the configuration has been understood.
Let's talk about this.gzip_proxied
Nginx is enabled as a reverse proxy, depending on some requests and responses to enable gzip compression for the answer to the proxy request, whether compression depends on the "Via" field in the request header, the instructions can specify multiple different parameters at the same time, meaning the following:
Expired-Enable compression if header header contains "Expires" headers
No-cache-Enable Compression if header header contains "Cache-control:no-cache" headers
No-store-Enable Compression if header header contains "Cache-control:no-store" headers
Private-Enables compression if header header contains "Cache-control:private" headers
No_last_modified-Enable compression if header does not contain "last-modified" headers
No_etag-Enable compression if header does not contain "etag" headers
Auth-Enable Compression if header header contains "Authorization" headers
Any-enable compression unconditionally

  • 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.