Nginx Module Reference Manual: Gzip precompression Module (gzip precompression)

Source: Internet
Author: User
Keywords Nginx precompression precompression Module
Tags checks client compile configuration configure file gzip compression module nginx

If you want to use these modules, you must specify the relevant compilation parameters at compile time.

This module checks to see if a compressed file with the end of ". Gz" exists before a compressed file is transferred to the client on which gzip compression is turned on, which prevents the file from being compressed repeatedly.
This module is available after 0.6.24, and if you want to use it, you need to specify the following parameters at compile time:

./configure--with-http_gzip_static_module

Sample configuration:

Gzip_static on; Gzip_http_version 1.1;gzip_proxied expired No-cache no-store private auth;gzip_disable "MSIE [1-6]\."; Gzip_vary on;

Instructions

Gzip_static

Syntax: Gzip_static on|off
Default value: Gzip_static off
Working with fields: HTTP, server, location
To enable the module, you need to make sure that the compressed file is the same as the timestamp of the uncompressed file.

Gzip_http_version

Refer to the GZIP compression module.

Gzip_proxied

Refer to the GZIP compression module.

Gzip_disable

Refer to the GZIP compression module.

Gzip_vary

Refer to the GZIP compression module.

Related Article

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.