Mercurial > hg > nginx-site
annotate xml/ru/docs/http/ngx_http_gzip_module.xml @ 2991:1f672755959a
njs-0.8.0.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Thu, 06 Jul 2023 18:12:53 +0100 |
parents | a4ef92436fbc |
children |
rev | line source |
---|---|
222
bfe3eff81d04
Removed redundant encoding specification.
Ruslan Ermilov <ru@nginx.com>
parents:
110
diff
changeset
|
1 <?xml version="1.0"?> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
2 |
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
3 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
4 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
5 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
6 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
546
diff
changeset
|
7 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
9 |
322 | 10 <module name="Модуль ngx_http_gzip_module" |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
11 link="/ru/docs/http/ngx_http_gzip_module.html" |
589 | 12 lang="ru" |
2354
a4ef92436fbc
Documented BREACH attack vulnerability for the gzip module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2142
diff
changeset
|
13 rev="5"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
14 |
110
40eec261c2a6
Added proper support for anonymous sections, notably for the summary.
Ruslan Ermilov <ru@nginx.com>
parents:
106
diff
changeset
|
15 <section id="summary"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
16 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
17 <para> |
367
f4033b9bc4ec
- Removed unnecessary instances of unbreakable space.
Ruslan Ermilov <ru@nginx.com>
parents:
364
diff
changeset
|
18 Модуль <literal>ngx_http_gzip_module</literal> — это фильтр, |
322 | 19 сжимающий ответ методом gzip, |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
20 что позволяет уменьшить размер передаваемых данных в 2 и более раз. |
2354
a4ef92436fbc
Documented BREACH attack vulnerability for the gzip module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2142
diff
changeset
|
21 <note> |
a4ef92436fbc
Documented BREACH attack vulnerability for the gzip module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2142
diff
changeset
|
22 При использовании протокола SSL/TLS сжатые ответы могут быть подвержены |
a4ef92436fbc
Documented BREACH attack vulnerability for the gzip module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2142
diff
changeset
|
23 атакам <link url="https://en.wikipedia.org/wiki/BREACH">BREACH</link>. |
a4ef92436fbc
Documented BREACH attack vulnerability for the gzip module.
Yaroslav Zhuravlev <yar@nginx.com>
parents:
2142
diff
changeset
|
24 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
25 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
26 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
27 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
28 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
29 |
322 | 30 <section id="example" name="Пример конфигурации"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
31 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
32 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
33 <example> |
351
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
34 gzip on; |
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
35 gzip_min_length 1000; |
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
36 gzip_proxied expired no-cache no-store private auth; |
a4fa80755eab
Consistently strip initial offset in examples.
Ruslan Ermilov <ru@nginx.com>
parents:
326
diff
changeset
|
37 gzip_types text/plain application/xml; |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
38 </example> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
39 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
40 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
41 <para> |
825
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
42 Для записи в лог достигнутого коэффициента сжатия можно использовать переменную |
322 | 43 <var>$gzip_ratio</var>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
44 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
45 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
46 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
47 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
48 |
322 | 49 <section id="directives" name="Директивы"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
50 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
51 <directive name="gzip"> |
271 | 52 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
53 <default>off</default> |
322 | 54 <context>http</context> |
55 <context>server</context> | |
56 <context>location</context> | |
57 <context>if в location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
58 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
59 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
60 Разрешает или запрещает сжатие ответа методом gzip. |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
61 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
62 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
63 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
64 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
65 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
66 <directive name="gzip_buffers"> |
271 | 67 <syntax><value>число</value> <value>размер</value></syntax> |
322 | 68 <default>32 4k|16 8k</default> |
69 <context>http</context> | |
70 <context>server</context> | |
71 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
72 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
73 <para> |
322 | 74 Задаёт <value>число</value> и <value>размер</value> буферов, |
75 в которые будет сжиматься ответ. | |
76 По умолчанию размер одного буфера равен размеру страницы. | |
77 В зависимости от платформы это или 4K, или 8K. | |
78 <note> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
79 До версии 0.7.28 по умолчанию использовалось 4 буфера размером 4K или 8K. |
322 | 80 </note> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
81 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
82 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
83 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
84 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
85 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
86 <directive name="gzip_comp_level"> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
87 |
271 | 88 <syntax><value>степень</value></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
89 <default>1</default> |
322 | 90 <context>http</context> |
91 <context>server</context> | |
92 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
93 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
94 <para> |
271 | 95 Устанавливает <value>степень</value> сжатия ответа методом gzip. |
966 | 96 Допустимые значения находятся в диапазоне от 1 до 9. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
97 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
98 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
99 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
100 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
101 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
102 <directive name="gzip_disable"> |
271 | 103 <syntax><value>regex</value> ...</syntax> |
99
1d315ef37215
The case <default/> is now language-agnostic.
Ruslan Ermilov <ru@nginx.com>
parents:
79
diff
changeset
|
104 <default/> |
322 | 105 <context>http</context> |
106 <context>server</context> | |
107 <context>location</context> | |
108 <appeared-in>0.6.23</appeared-in> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
109 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
110 <para> |
322 | 111 Запрещает сжатие ответа методом gzip для запросов |
326 | 112 с полями заголовка <header>User-Agent</header>, |
322 | 113 совпадающими с заданными регулярными выражениями. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
114 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
115 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
116 <para> |
322 | 117 Специальная маска “<literal>msie6</literal>” (0.7.12) соответствует |
118 регулярному выражению “<literal>MSIE [4-6]\.</literal>”, но работает быстрее. | |
1724
ce3e89d13fa0
Removed unneeded comma in "Since ..." Russian constructs.
Maxim Dounin <mdounin@mdounin.ru>
parents:
1248
diff
changeset
|
119 Начиная с версии 0.8.11 из этой маски исключается |
322 | 120 “<literal>MSIE 6.0; ... SV1</literal>”. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
121 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
122 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
123 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
124 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
125 |
2142
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
126 <directive name="gzip_http_version"> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
127 <syntax><literal>1.0</literal> | <literal>1.1</literal></syntax> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
128 <default>1.1</default> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
129 <context>http</context> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
130 <context>server</context> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
131 <context>location</context> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
132 |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
133 <para> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
134 Устанавливает минимальную HTTP-версию запроса, необходимую для сжатия ответа. |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
135 </para> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
136 |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
137 </directive> |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
138 |
ca7568f67dee
Sorted directives alphabetically.
Ruslan Ermilov <ru@nginx.com>
parents:
1724
diff
changeset
|
139 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
140 <directive name="gzip_min_length"> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
141 <syntax><value>длина</value></syntax> |
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
142 <default>20</default> |
322 | 143 <context>http</context> |
144 <context>server</context> | |
145 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
146 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
147 <para> |
322 | 148 Устанавливает минимальную длину ответа, который будет сжиматься методом gzip. |
326 | 149 Длина определяется только из поля <header>Content-Length</header> |
322 | 150 заголовка ответа. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
151 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
152 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
153 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
154 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
155 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
156 <directive name="gzip_proxied"> |
271 | 157 <syntax> |
364 | 158 <literal>off</literal> | |
159 <literal>expired</literal> | | |
160 <literal>no-cache</literal> | | |
161 <literal>no-store</literal> | | |
162 <literal>private</literal> | | |
163 <literal>no_last_modified</literal> | | |
164 <literal>no_etag</literal> | | |
165 <literal>auth</literal> | | |
166 <literal>any</literal> | |
167 ...</syntax> | |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
168 <default>off</default> |
322 | 169 <context>http</context> |
170 <context>server</context> | |
171 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
172 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
173 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
174 Разрешает или запрещает сжатие ответа методом gzip для проксированных |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
175 запросов в зависимости от запроса и ответа. |
326 | 176 То, что запрос проксированный, определяется на основании наличия поля |
177 <header>Via</header> в заголовке запроса. | |
285 | 178 В директиве можно указать одновременно несколько параметров: |
322 | 179 <list type="tag"> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
180 |
322 | 181 <tag-name><literal>off</literal></tag-name> |
182 <tag-desc> | |
183 запрещает сжатие для всех проксированных запросов, | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
184 игнорируя остальные параметры; |
322 | 185 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
186 |
322 | 187 <tag-name><literal>expired</literal></tag-name> |
188 <tag-desc> | |
326 | 189 разрешает сжатие, если в заголовке ответа есть поле |
322 | 190 <header>Expires</header> со значением, запрещающим кэширование; |
191 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
192 |
322 | 193 <tag-name><literal>no-cache</literal></tag-name> |
194 <tag-desc> | |
326 | 195 разрешает сжатие, если в заголовке ответа есть поле |
322 | 196 <header>Cache-Control</header> с параметром “<literal>no-cache</literal>”; |
197 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
198 |
322 | 199 <tag-name><literal>no-store</literal></tag-name> |
200 <tag-desc> | |
326 | 201 разрешает сжатие, если в заголовке ответа есть поле |
322 | 202 <header>Cache-Control</header> с параметром “<literal>no-store</literal>”; |
203 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
204 |
322 | 205 <tag-name><literal>private</literal></tag-name> |
206 <tag-desc> | |
326 | 207 разрешает сжатие, если в заголовке ответа есть поле |
322 | 208 <header>Cache-Control</header> с параметром “<literal>private</literal>”; |
209 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
210 |
322 | 211 <tag-name><literal>no_last_modified</literal></tag-name> |
212 <tag-desc> | |
326 | 213 разрешает сжатие, если в заголовке ответа нет поля |
322 | 214 <header>Last-Modified</header>; |
215 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
216 |
322 | 217 <tag-name><literal>no_etag</literal></tag-name> |
218 <tag-desc> | |
326 | 219 разрешает сжатие, если в заголовке ответа нет поля |
322 | 220 <header>ETag</header>; |
221 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
222 |
322 | 223 <tag-name><literal>auth</literal></tag-name> |
224 <tag-desc> | |
326 | 225 разрешает сжатие, если в заголовке запроса есть поле |
322 | 226 <header>Authorization</header>; |
227 </tag-desc> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
228 |
322 | 229 <tag-name><literal>any</literal></tag-name> |
230 <tag-desc> | |
326 | 231 разрешает сжатие для всех проксированных запросов. |
322 | 232 </tag-desc> |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
233 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
234 </list> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
235 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
236 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
237 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
238 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
239 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
240 <directive name="gzip_types"> |
271 | 241 <syntax><value>mime-тип</value> ...</syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
242 <default>text/html</default> |
322 | 243 <context>http</context> |
244 <context>server</context> | |
245 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
246 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
247 <para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
248 Разрешает сжатие ответа методом gzip для указанных MIME-типов в дополнение |
322 | 249 к “<literal>text/html</literal>”. |
546
694db9597ee0
Documented the special value "*" in various "*_type" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
367
diff
changeset
|
250 Специальное значение “<literal>*</literal>” соответствует любому MIME-типу |
694db9597ee0
Documented the special value "*" in various "*_type" directives.
Ruslan Ermilov <ru@nginx.com>
parents:
367
diff
changeset
|
251 (0.8.29). |
322 | 252 Ответы с типом “<literal>text/html</literal>” сжимаются всегда. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
253 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
254 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
255 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
256 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
257 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
258 <directive name="gzip_vary"> |
271 | 259 <syntax><literal>on</literal> | <literal>off</literal></syntax> |
102
c76a257f3fd4
The directive name is now automatically printed in <default> and <syntax>.
Ruslan Ermilov <ru@nginx.com>
parents:
99
diff
changeset
|
260 <default>off</default> |
322 | 261 <context>http</context> |
262 <context>server</context> | |
263 <context>location</context> | |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
264 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
265 <para> |
326 | 266 Разрешает или запрещает выдавать в ответе поле заголовка |
744
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
267 <header>Vary: Accept-Encoding</header>, если активны директивы |
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
268 <link id="gzip"/>, |
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
269 <link doc="ngx_http_gzip_static_module.xml" id="gzip_static"/> или |
ac709e45740d
Revision of ngx_http_gunzip_module documentation.
Ruslan Ermilov <ru@nginx.com>
parents:
589
diff
changeset
|
270 <link doc="ngx_http_gunzip_module.xml" id="gunzip"/>. |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
271 </para> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
272 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
273 </directive> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
274 |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
275 </section> |
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
276 |
825
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
277 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
278 <section id="variables" name="Встроенные переменные"> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
279 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
280 <para> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
281 <list type="tag"> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
282 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
283 <tag-name id="var_gzip_ratio"><var>$gzip_ratio</var></tag-name> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
284 <tag-desc>достигнутый коэффициент сжатия — отношение размера исходного |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
285 ответа к размеру сжатого.</tag-desc> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
286 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
287 </list> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
288 </para> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
289 |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
290 </section> |
ae15915990ad
Documented the "gzip_ratio" variable.
Homutov Vladimir <vl@nginx.com>
parents:
744
diff
changeset
|
291 |
76
4a4caa566120
Russian documentation import.
Maxim Dounin <mdounin@mdounin.ru>
parents:
diff
changeset
|
292 </module> |