Mercurial > hg > nginx-site
changeset 825:ae15915990ad
Documented the "gzip_ratio" variable.
author | Homutov Vladimir <vl@nginx.com> |
---|---|
date | Wed, 30 Jan 2013 19:52:12 +0400 |
parents | c66610f9a53f |
children | ddd22f571529 |
files | xml/en/docs/http/ngx_http_gzip_module.xml xml/ru/docs/http/ngx_http_gzip_module.xml |
diffstat | 2 files changed, 33 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_gzip_module.xml +++ b/xml/en/docs/http/ngx_http_gzip_module.xml @@ -10,7 +10,7 @@ <module name="Module ngx_http_gzip_module" link="/en/docs/http/ngx_http_gzip_module.html" lang="en" - rev="2"> + rev="3"> <section id="summary"> @@ -271,4 +271,19 @@ are active. </section> + +<section id="variables" name="Embedded Variables"> + +<para> +<list type="tag"> + +<tag-name id="var_gzip_ratio"><var>$gzip_ratio</var></tag-name> +<tag-desc>achieved compression ratio, computed as the ratio between the +original and compressed response size.</tag-desc> + +</list> +</para> + +</section> + </module>
--- a/xml/ru/docs/http/ngx_http_gzip_module.xml +++ b/xml/ru/docs/http/ngx_http_gzip_module.xml @@ -10,7 +10,7 @@ <module name="Модуль ngx_http_gzip_module" link="/ru/docs/http/ngx_http_gzip_module.html" lang="ru" - rev="2"> + rev="3"> <section id="summary"> @@ -35,7 +35,7 @@ gzip_types text/plain application/x </para> <para> -Для записи в лог полученной степени сжатия можно использовать переменную +Для записи в лог достигнутого коэффициента сжатия можно использовать переменную <var>$gzip_ratio</var>. </para> @@ -270,4 +270,19 @@ gzip_types text/plain application/x </section> + +<section id="variables" name="Встроенные переменные"> + +<para> +<list type="tag"> + +<tag-name id="var_gzip_ratio"><var>$gzip_ratio</var></tag-name> +<tag-desc>достигнутый коэффициент сжатия — отношение размера исходного +ответа к размеру сжатого.</tag-desc> + +</list> +</para> + +</section> + </module>