# HG changeset patch # User Vladimir Homutov # Date 1347442547 0 # Node ID 08140f6b79642465720246cd5f39d5d953d06e1f # Parent c48c0936b4df715ed29f117559086a32e4e8a13c Documented gunzip module and corresponding changes. diff --git a/xml/en/GNUmakefile b/xml/en/GNUmakefile --- a/xml/en/GNUmakefile +++ b/xml/en/GNUmakefile @@ -47,6 +47,7 @@ REFS = \ http/ngx_http_flv_module \ http/ngx_http_geo_module \ http/ngx_http_geoip_module \ + http/ngx_http_gunzip_module \ http/ngx_http_gzip_module \ http/ngx_http_gzip_static_module \ http/ngx_http_headers_module \ diff --git a/xml/en/docs/http/ngx_http_gzip_static_module.xml b/xml/en/docs/http/ngx_http_gzip_static_module.xml --- a/xml/en/docs/http/ngx_http_gzip_static_module.xml +++ b/xml/en/docs/http/ngx_http_gzip_static_module.xml @@ -44,14 +44,18 @@ gzip_proxied expired no-cache no-store p
-on | off + + on | + off | + always off http server location -Enables or disables checking the existence of precompressed files. +Enables (“on”) or disables (“off”) +checking the existence of precompressed files. The following directives are also taken into account: , , @@ -60,6 +64,14 @@ and +With the “always” value (1.3.6), gzipped file is used +in all cases, without checking if the client supports it. +It is useful if there are no uncompressed files on the disk anyway +or the ngx_http_gunzip_module +is used. + + + The files can be compressed using the gzip command, or any other compatible. It is recommended that the modification date and time of original and diff --git a/xml/en/docs/http/ngx_http_memcached_module.xml b/xml/en/docs/http/ngx_http_memcached_module.xml --- a/xml/en/docs/http/ngx_http_memcached_module.xml +++ b/xml/en/docs/http/ngx_http_memcached_module.xml @@ -79,6 +79,24 @@ It should be noted that this timeout can + +flag + +http +server +location +1.3.6 + + +Enables the test for the flag presence in the memcached +server response and sets the request header field +“Content-Encoding” to “gzip” +if the flag is set. + + + + + error | diff --git a/xml/en/docs/index.xml b/xml/en/docs/index.xml --- a/xml/en/docs/index.xml +++ b/xml/en/docs/index.xml @@ -173,6 +173,11 @@ ngx_http_geoip_module + +ngx_http_gunzip_module + + + ngx_http_gzip_module diff --git a/xml/ru/GNUmakefile b/xml/ru/GNUmakefile --- a/xml/ru/GNUmakefile +++ b/xml/ru/GNUmakefile @@ -40,6 +40,7 @@ REFS = \ http/ngx_http_flv_module \ http/ngx_http_geo_module \ http/ngx_http_geoip_module \ + http/ngx_http_gunzip_module \ http/ngx_http_gzip_module \ http/ngx_http_gzip_static_module \ http/ngx_http_headers_module \ diff --git a/xml/ru/docs/http/ngx_http_gzip_static_module.xml b/xml/ru/docs/http/ngx_http_gzip_static_module.xml --- a/xml/ru/docs/http/ngx_http_gzip_static_module.xml +++ b/xml/ru/docs/http/ngx_http_gzip_static_module.xml @@ -44,14 +44,18 @@ gzip_proxied expired no-cache no-store p
-on | off + + on | + off | + always off http server location -Разрешает или запрещает проверку готового сжатого файла. +Разрешает (“on”) или запрещает (“off”) +проверку готового сжатого файла. При использовании также учитываются директивы , , @@ -60,6 +64,13 @@ gzip_proxied expired no-cache no-store p +Со значением “always” (1.3.6) во всех случаях будет +использоваться сжатый файл, без проверки поддержки на стороне клиента. +Это полезно, если на диске всё равно нет несжатых файлов, или используется +модуль ngx_http_gunzip_module. + + + Сжимать файлы можно с помощью программы gzip или совместимой с ней. Желательно, чтобы дата и время модификации исходного и сжатого файлов совпадали. diff --git a/xml/ru/docs/http/ngx_http_memcached_module.xml b/xml/ru/docs/http/ngx_http_memcached_module.xml --- a/xml/ru/docs/http/ngx_http_memcached_module.xml +++ b/xml/ru/docs/http/ngx_http_memcached_module.xml @@ -79,6 +79,23 @@ server { + +флаг + +http +server +location +1.3.6 + + +Включает проверку указанного флага в ответе +сервера memcached и установку поля “Content-Encoding” +заголовка ответа в “gzip”, если этот флаг установлен. + + + + + error | diff --git a/xml/ru/docs/index.xml b/xml/ru/docs/index.xml --- a/xml/ru/docs/index.xml +++ b/xml/ru/docs/index.xml @@ -162,6 +162,11 @@ ngx_http_geoip_module + +ngx_http_gunzip_module + + + ngx_http_gzip_module