comparison xml/en/docs/http/ngx_http_gzip_static_module.xml @ 675:08140f6b7964

Documented gunzip module and corresponding changes.
author Vladimir Homutov <vl@nginx.com>
date Wed, 12 Sep 2012 09:35:47 +0000
parents 764fbac1b8b4
children 934fd358c944
comparison
equal deleted inserted replaced
674:c48c0936b4df 675:08140f6b7964
42 42
43 43
44 <section id="directives" name="Directives"> 44 <section id="directives" name="Directives">
45 45
46 <directive name="gzip_static"> 46 <directive name="gzip_static">
47 <syntax><literal>on</literal> | <literal>off</literal></syntax> 47 <syntax>
48 <literal>on</literal> |
49 <literal>off</literal> |
50 <literal>always</literal></syntax>
48 <default>off</default> 51 <default>off</default>
49 <context>http</context> 52 <context>http</context>
50 <context>server</context> 53 <context>server</context>
51 <context>location</context> 54 <context>location</context>
52 55
53 <para> 56 <para>
54 Enables or disables checking the existence of precompressed files. 57 Enables (“<literal>on</literal>”) or disables (“<literal>off</literal>”)
58 checking the existence of precompressed files.
55 The following directives are also taken into account: 59 The following directives are also taken into account:
56 <link doc="ngx_http_gzip_module.xml" id="gzip_http_version"/>, 60 <link doc="ngx_http_gzip_module.xml" id="gzip_http_version"/>,
57 <link doc="ngx_http_gzip_module.xml" id="gzip_proxied"/>, 61 <link doc="ngx_http_gzip_module.xml" id="gzip_proxied"/>,
58 <link doc="ngx_http_gzip_module.xml" id="gzip_disable"/>, 62 <link doc="ngx_http_gzip_module.xml" id="gzip_disable"/>,
59 and <link doc="ngx_http_gzip_module.xml" id="gzip_vary"/>. 63 and <link doc="ngx_http_gzip_module.xml" id="gzip_vary"/>.
64 </para>
65
66 <para>
67 With the “<literal>always</literal>” value (1.3.6), gzipped file is used
68 in all cases, without checking if the client supports it.
69 It is useful if there are no uncompressed files on the disk anyway
70 or the <link doc="ngx_http_gunzip_module.xml">ngx_http_gunzip_module</link>
71 is used.
60 </para> 72 </para>
61 73
62 <para> 74 <para>
63 The files can be compressed using the <command>gzip</command> command, 75 The files can be compressed using the <command>gzip</command> command,
64 or any other compatible. 76 or any other compatible.