About Gzip configuration of Nginx configuration file: I don't quite understand what the role of gzip_proxied is. How should I configure it correctly?

Source: Internet
Author: User
About Gzip configuration of Nginx configuration file: I don't quite understand what the role of gzip_proxied is. How should I configure it correctly? Official Instructions: Syntax: gzip_proxiedoff | expired | no-cache | no-store | private | no_last_modified | no... about Gzip configuration of Nginx configuration file: I don't quite understand what the role of gzip_proxied is. How should I configure it correctly?

Official Instructions 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 Gzip configuration of Nginx configuration file: I don't quite understand what the role of gzip_proxied is. How should I configure it correctly?

Official Instructions 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 subject should begzip_comp_level,gzip_types,gzip_varyAnd other configurations.
Let's talk about this.gzip_proxied
Nginx is enabled when it is used as a reverse proxy. Based on some requests and responses, it determines whether gzip compression is enabled for the response to the proxy request. Compression depends on the "Via" field in the request header, multiple different parameters can be specified in the command. The meaning is as follows:
Expired-enable compression. If the header contains "Expires" header information
No-cache-enable compression. If the header contains "Cache-Control: no-cache" header information
No-store-enable compression. If the header contains "Cache-Control: no-store" header information
Private-enable compression. If the header contains "Cache-Control: private" header information
No_last_modified-enable compression. If the header does not contain "Last-Modified" header information
No_etag-enable compression. If the header does not contain the "ETag" header information
Auth-enable compression. If the header contains "Authorization" header information
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.