Mercurial > hg > nginx-site
comparison xml/cn/docs/http/ngx_http_gzip_static_module.xml @ 720:9934338f83af
Updated the Chinese documentation.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 11 Oct 2012 10:23:05 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
719:6a37df6078a1 | 720:9934338f83af |
---|---|
1 <?xml version="1.0"?> | |
2 | |
3 <!-- | |
4 Copyright (C) Igor Sysoev | |
5 Copyright (C) Nginx, Inc. | |
6 --> | |
7 | |
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | |
9 | |
10 <module name="ngx_http_gzip_static_module模块" | |
11 link="/cn/docs/http/ngx_http_gzip_static_module.html" | |
12 lang="cn" | |
13 translator="WenMing" | |
14 rev="1"> | |
15 | |
16 <section id="summary"> | |
17 | |
18 <para> | |
19 模块 <literal>ngx_http_gzip_static_module</literal> 允许发送以“<literal>.gz</literal>”作为文件扩展名的预压缩文件,以替代发送普通文件。 | |
20 </para> | |
21 | |
22 <para> | |
23 这个模块不是默认编译的,因此需要指定 | |
24 <literal>--with-http_gzip_static_module</literal> | |
25 编译选项。 | |
26 </para> | |
27 | |
28 </section> | |
29 | |
30 | |
31 <section id="example" name="配置范例"> | |
32 | |
33 <para> | |
34 <example> | |
35 gzip_static on; | |
36 gzip_proxied expired no-cache no-store private auth; | |
37 </example> | |
38 </para> | |
39 | |
40 </section> | |
41 | |
42 | |
43 <section id="directives" name="指令"> | |
44 | |
45 <directive name="gzip_static"> | |
46 <syntax><literal>on</literal> | <literal>off</literal></syntax> | |
47 <default>off</default> | |
48 <context>http</context> | |
49 <context>server</context> | |
50 <context>location</context> | |
51 | |
52 <para> | |
53 启用或者禁用检查预压缩文件是否存在。 | |
54 与以下指令共同确定功能开启: | |
55 <link doc="ngx_http_gzip_module.xml" id="gzip_http_version"/>, | |
56 <link doc="ngx_http_gzip_module.xml" id="gzip_proxied"/>, | |
57 <link doc="ngx_http_gzip_module.xml" id="gzip_disable"/>, | |
58 和<link doc="ngx_http_gzip_module.xml" id="gzip_vary"/>. | |
59 </para> | |
60 | |
61 <para> | |
62 文件可以使用 <command>gzip</command> 命令来进行压缩,或任何其他兼容的命令。 | |
63 建议压缩文件和原始文件的修改日期和时间保持一致。 | |
64 </para> | |
65 | |
66 </directive> | |
67 | |
68 </section> | |
69 | |
70 </module> |