Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngx_http_xslt_module.xml的翻译 #36

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
210 changes: 0 additions & 210 deletions xml/cn/docs/http/ngx_http_charset_module.xml

This file was deleted.

57 changes: 28 additions & 29 deletions xml/cn/docs/http/ngx_http_headers_module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@

<module name="Module ngx_http_headers_module"
link="/en/docs/http/ngx_http_headers_module.html"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en => cn

lang="en"
lang="cn"
translator="allisstone"
rev="1">

<section id="summary">

<para>
The <literal>ngx_http_headers_module</literal> module allows to emit
the <header>Expires</header> and <header>Cache-Control</header> header
fields, and to add arbitrary fields to a response header.
<literal>ngx_http_headers_module</literal> 模块允许发出
<header>Expires</header> <header>Cache-Control</header>
头域,并将任意域添加到响应头。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

头域 => 响应头

</para>

</section>
Expand Down Expand Up @@ -50,9 +51,8 @@ add_header Cache-Control private;
<context>location</context>

<para>
Adds the specified field to a response header provided that
the response code equals 200, 204, 206, 301, 302, 303, 304, or 307.
A value can contain variables.
当响应代码等于200, 204, 206, 301, 302, 303, 304, 或者307,增加指定域到响应头。
一个值可以包含变量。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一个值可以包含变量
值中可以包含变量

</para>

</directive>
Expand All @@ -70,58 +70,57 @@ A value can contain variables.
<context>location</context>

<para>
Enables or disables adding or modifying the <header>Expires</header>
and <header>Cache-Control</header> response header fields.
A parameter can be a positive or negative
启用或禁用增加或者修改 <header>Expires</header>
<header>Cache-Control</header> 响应头域。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

响应头域
响应头

参数可以是正或者是负的。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

是正或者是负的
正负均可

<link doc="../syntax.xml">time</link>.
</para>

<para>
A time in the <header>Expires</header> field is computed as a sum of the
current time and <value>time</value> specified in the directive.
If the <literal>modified</literal> parameter is used (0.7.0, 0.6.32)
then time is computed as a sum of the file’s modification time and
<value>time</value> specified in the directive.
<header>Expires</header> 域里的时间可以由当前时间
<value>time</value> 和指令里指定的时间的和来算出。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

的和来算出
求和得出

如果使用了 <literal>modified</literal> (参数0.7.0, 0.6.32)
那么时间由文件修改时间和
<value>time</value> 指令里的特定时间来算出。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

特定
指定

</para>

<para>
In addition, it is possible to specify a time of the day using
the “<literal>@</literal>” prefix (0.7.9, 0.6.34):
除此之外,可以使用一个前缀(0.7.9, 0.6.34)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一个前缀
前缀

the “<literal>@</literal>” :来指定一天的时间。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the “@” :
“@”

<example>
expires @15h30m;
</example>
</para>

<para>
The <literal>epoch</literal> parameter corresponds to the absolute time
<literal>epoch</literal> 参数对应于绝对时间
“<literal>Thu, 01 Jan 1970 00:00:01 GMT</literal>”.
The contents of the <header>Cache-Control</header> field depends
on the sign of the specified time:
<header>Cache-Control</header>
域的内容取决于指定时间标志:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

时间标志
时间的正负符号

<list type="bullet">

<listitem>
time is negative — <header>Cache-Control: no-cache</header>.
时间是负的 — <header>Cache-Control: no-cache</header>.
</listitem>

<listitem>
time is positive or zero —
时间是正的或者是0-
<header>Cache-Control: max-age=<value>t</value></header>,
where <value>t</value> is a time specified in the directive, in seconds.
<value>t</value> 是在指令中很快指定的时间。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

指令中很快指定的时间
指令中指定的时间,以秒计

</listitem>

</list>
</para>

<para>
The <literal>max</literal> parameter sets <header>Expires</header>
to the value “<literal>Thu, 31 Dec 2037 23:55:55 GMT</literal>”,
and <header>Cache-Control</header> to 10 years.
<literal>max</literal> 参数设置 <header>Expires</header>
值为 “<literal>Thu, 31 Dec 2037 23:55:55 GMT</literal>”,
以及<header>Cache-Control</header> 设置为10年。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

以及
并将

</para>

<para>
The <literal>off</literal> parameter disables adding or modifying the
<header>Expires</header> and <header>Cache-Control</header> response
header fields.
<literal>off</literal> 参数禁止增加或者修改
<header>Expires</header> 和<header>Cache-Control</header> 响应头域。
</para>

</directive>
Expand Down
Loading