Mercurial > hg > nginx-site
changeset 1349:97c8b146cb0e
Split the long paragraph about caching parameters into the list.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Thu, 30 Oct 2014 20:26:47 +0300 |
parents | 5e45198fa991 |
children | 1e5ca88d9073 |
files | xml/en/docs/http/ngx_http_fastcgi_module.xml xml/en/docs/http/ngx_http_proxy_module.xml xml/en/docs/http/ngx_http_scgi_module.xml xml/en/docs/http/ngx_http_uwsgi_module.xml xml/ru/docs/http/ngx_http_fastcgi_module.xml xml/ru/docs/http/ngx_http_proxy_module.xml xml/ru/docs/http/ngx_http_scgi_module.xml xml/ru/docs/http/ngx_http_uwsgi_module.xml |
diffstat | 8 files changed, 96 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/xml/en/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/en/docs/http/ngx_http_fastcgi_module.xml @@ -522,16 +522,28 @@ fastcgi_cache_valid any 1m; Parameters of caching can also be set directly in the response header. This has higher priority than setting of caching time using the directive. +<list type="bullet" compact="no"> + +<listitem> The <header>X-Accel-Expires</header> header field sets caching time of a response in seconds. The zero value disables caching for a response. If the value starts with the <literal>@</literal> prefix, it sets an absolute time in seconds since Epoch, up to which the response may be cached. +</listitem> + +<listitem> If the header does not include the <header>X-Accel-Expires</header> field, parameters of caching may be set in the header fields <header>Expires</header> or <header>Cache-Control</header>. +</listitem> + +<listitem> If the header includes the <header>Set-Cookie</header> field, such a response will not be cached. +</listitem> + +</list> Processing of one or more of these response header fields can be disabled using the <link id="fastcgi_ignore_headers"/> directive. </para>
--- a/xml/en/docs/http/ngx_http_proxy_module.xml +++ b/xml/en/docs/http/ngx_http_proxy_module.xml @@ -522,16 +522,28 @@ proxy_cache_valid any 1m; Parameters of caching can also be set directly in the response header. This has higher priority than setting of caching time using the directive. +<list type="bullet" compact="no"> + +<listitem> The <header>X-Accel-Expires</header> header field sets caching time of a response in seconds. The zero value disables caching for a response. If the value starts with the <literal>@</literal> prefix, it sets an absolute time in seconds since Epoch, up to which the response may be cached. +</listitem> + +<listitem> If the header does not include the <header>X-Accel-Expires</header> field, parameters of caching may be set in the header fields <header>Expires</header> or <header>Cache-Control</header>. +</listitem> + +<listitem> If the header includes the <header>Set-Cookie</header> field, such a response will not be cached. +</listitem> + +</list> Processing of one or more of these response header fields can be disabled using the <link id="proxy_ignore_headers"/> directive. </para>
--- a/xml/en/docs/http/ngx_http_scgi_module.xml +++ b/xml/en/docs/http/ngx_http_scgi_module.xml @@ -513,16 +513,28 @@ scgi_cache_valid any 1m; Parameters of caching can also be set directly in the response header. This has higher priority than setting of caching time using the directive. +<list type="bullet" compact="no"> + +<listitem> The <header>X-Accel-Expires</header> header field sets caching time of a response in seconds. The zero value disables caching for a response. If the value starts with the <literal>@</literal> prefix, it sets an absolute time in seconds since Epoch, up to which the response may be cached. +</listitem> + +<listitem> If the header does not include the <header>X-Accel-Expires</header> field, parameters of caching may be set in the header fields <header>Expires</header> or <header>Cache-Control</header>. +</listitem> + +<listitem> If the header includes the <header>Set-Cookie</header> field, such a response will not be cached. +</listitem> + +</list> Processing of one or more of these response header fields can be disabled using the <link id="scgi_ignore_headers"/> directive. </para>
--- a/xml/en/docs/http/ngx_http_uwsgi_module.xml +++ b/xml/en/docs/http/ngx_http_uwsgi_module.xml @@ -513,16 +513,28 @@ uwsgi_cache_valid any 1m; Parameters of caching can also be set directly in the response header. This has higher priority than setting of caching time using the directive. +<list type="bullet" compact="no"> + +<listitem> The <header>X-Accel-Expires</header> header field sets caching time of a response in seconds. The zero value disables caching for a response. If the value starts with the <literal>@</literal> prefix, it sets an absolute time in seconds since Epoch, up to which the response may be cached. +</listitem> + +<listitem> If the header does not include the <header>X-Accel-Expires</header> field, parameters of caching may be set in the header fields <header>Expires</header> or <header>Cache-Control</header>. +</listitem> + +<listitem> If the header includes the <header>Set-Cookie</header> field, such a response will not be cached. +</listitem> + +</list> Processing of one or more of these response header fields can be disabled using the <link id="uwsgi_ignore_headers"/> directive. </para>
--- a/xml/ru/docs/http/ngx_http_fastcgi_module.xml +++ b/xml/ru/docs/http/ngx_http_fastcgi_module.xml @@ -521,16 +521,28 @@ fastcgi_cache_valid any 1m; Параметры кэширования могут также быть заданы непосредственно в заголовке ответа. Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. +<list type="bullet" compact="no"> + +<listitem> Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования ответа в секундах. Значение 0 запрещает кэшировать ответ. Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное время в секундах с начала эпохи, до которого ответ может быть закэширован. +</listitem> + +<listitem> Если в заголовке нет поля <header>X-Accel-Expires</header>, параметры кэширования определяются по полям заголовка <header>Expires</header> или <header>Cache-Control</header>. +</listitem> + +<listitem> Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, не будет кэшироваться. +</listitem> + +</list> Обработка одного или более из этих полей заголовка может быть отключена при помощи директивы <link id="fastcgi_ignore_headers"/>. </para>
--- a/xml/ru/docs/http/ngx_http_proxy_module.xml +++ b/xml/ru/docs/http/ngx_http_proxy_module.xml @@ -522,16 +522,28 @@ proxy_cache_valid any 1m; Параметры кэширования могут также быть заданы непосредственно в заголовке ответа. Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. +<list type="bullet" compact="no"> + +<listitem> Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования ответа в секундах. Значение 0 запрещает кэшировать ответ. Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное время в секундах с начала эпохи, до которого ответ может быть закэширован. +</listitem> + +<listitem> Если в заголовке нет поля <header>X-Accel-Expires</header>, параметры кэширования определяются по полям заголовка <header>Expires</header> или <header>Cache-Control</header>. +</listitem> + +<listitem> Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, не будет кэшироваться. +</listitem> + +</list> Обработка одного или более из этих полей заголовка может быть отключена при помощи директивы <link id="proxy_ignore_headers"/>. </para>
--- a/xml/ru/docs/http/ngx_http_scgi_module.xml +++ b/xml/ru/docs/http/ngx_http_scgi_module.xml @@ -512,16 +512,28 @@ scgi_cache_valid any 1m; Параметры кэширования могут также быть заданы непосредственно в заголовке ответа. Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. +<list type="bullet" compact="no"> + +<listitem> Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования ответа в секундах. Значение 0 запрещает кэшировать ответ. Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное время в секундах с начала эпохи, до которого ответ может быть закэширован. +</listitem> + +<listitem> Если в заголовке нет поля <header>X-Accel-Expires</header>, параметры кэширования определяются по полям заголовка <header>Expires</header> или <header>Cache-Control</header>. +</listitem> + +<listitem> Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, не будет кэшироваться. +</listitem> + +</list> Обработка одного или более из этих полей заголовка может быть отключена при помощи директивы <link id="scgi_ignore_headers"/>. </para>
--- a/xml/ru/docs/http/ngx_http_uwsgi_module.xml +++ b/xml/ru/docs/http/ngx_http_uwsgi_module.xml @@ -512,16 +512,28 @@ uwsgi_cache_valid any 1m; Параметры кэширования могут также быть заданы непосредственно в заголовке ответа. Такой способ приоритетнее, чем задание времени кэширования с помощью директивы. +<list type="bullet" compact="no"> + +<listitem> Поле заголовка <header>X-Accel-Expires</header> задаёт время кэширования ответа в секундах. Значение 0 запрещает кэшировать ответ. Если значение начинается с префикса <literal>@</literal>, оно задаёт абсолютное время в секундах с начала эпохи, до которого ответ может быть закэширован. +</listitem> + +<listitem> Если в заголовке нет поля <header>X-Accel-Expires</header>, параметры кэширования определяются по полям заголовка <header>Expires</header> или <header>Cache-Control</header>. +</listitem> + +<listitem> Ответ, в заголовке которого есть поле <header>Set-Cookie</header>, не будет кэшироваться. +</listitem> + +</list> Обработка одного или более из этих полей заголовка может быть отключена при помощи директивы <link id="uwsgi_ignore_headers"/>. </para>