Opened 12 years ago

Closed 12 years ago

#171 closed enhancement (fixed)

$gzip_ratio ratio needs documentation

Reported by: Jens Rantil Owned by: vl
Priority: trivial Milestone:
Component: other Version: 1.3.x
Keywords: Cc:
uname -a: Linux XXXXXXXXXXX 2.6.32-5-amd64 #1 SMP Sat May 5 01:12:59 UTC 2012 x86_64 GNU/Linux
nginx -V: nginx/0.7.67

Description

I propose two improvements to this wiki page: http://wiki.nginx.org/HttpGzipModule

  1. Create a "Variables" section just like http://wiki.nginx.org/HttpCoreModule has and add the $gzip_ratio variable to it. Having the same structure on multiple wiki pages will improve browsability/readability. I missed the variable a couple of times because I simply was not lookin in the intro paragraph.
  2. Document exactly how the ratio is calculated. I guess it is origsize/compressedsize?

Change History (5)

comment:1 by Ruslan Ermilov, 12 years ago

  1. FYI, official English documentation is here: http://nginx.org/en/docs/http/ngx_http_gzip_module.html, but it also misses the "Embedded Variables" section, like many other modules. Wiki page mainly resembles its contents.
  1. The data compression ratio is computed traditionally => need not to be documented explicitly.

comment:2 by Valentin V. Bartenev, 12 years ago

  1. Since it's a Wiki page, please feel free to improve it.

comment:3 by maxim, 12 years ago

Owner: changed from somebody to vl
sensitive: 0
Status: newassigned

comment:4 by vl, 12 years ago

Documentation updated - gzip_ratio description added: http://hg.nginx.org/nginx.org/rev/ae15915990ad.

comment:5 by vl, 12 years ago

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.