Mercurial > hg > nginx-site
comparison xml/en/docs/http/ngx_http_fastcgi_module.xml @ 1910:41cf2c2d8c5c
Cache: support for stale-while-revalidate and stale-if-error.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Wed, 15 Feb 2017 23:17:00 +0300 |
parents | 399d0e188195 |
children | ec4af97e4403 |
comparison
equal
deleted
inserted
replaced
1909:399d0e188195 | 1910:41cf2c2d8c5c |
---|---|
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> | 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> |
9 | 9 |
10 <module name="Module ngx_http_fastcgi_module" | 10 <module name="Module ngx_http_fastcgi_module" |
11 link="/en/docs/http/ngx_http_fastcgi_module.html" | 11 link="/en/docs/http/ngx_http_fastcgi_module.html" |
12 lang="en" | 12 lang="en" |
13 rev="41"> | 13 rev="42"> |
14 | 14 |
15 <section id="summary"> | 15 <section id="summary"> |
16 | 16 |
17 <para> | 17 <para> |
18 The <literal>ngx_http_fastcgi_module</literal> module allows passing | 18 The <literal>ngx_http_fastcgi_module</literal> module allows passing |
629 | 629 |
630 <para> | 630 <para> |
631 The <literal>error</literal> parameter also permits | 631 The <literal>error</literal> parameter also permits |
632 using a stale cached response if a FastCGI server to process a request | 632 using a stale cached response if a FastCGI server to process a request |
633 cannot be selected. | 633 cannot be selected. |
634 The same behavior can be enabled with the | |
635 “<link url="https://tools.ietf.org/html/rfc5861#section-4">stale-if-error</link>” | |
636 extension of the <header>Cache-Control</header> response header field (1.11.10) | |
637 for a specified number of seconds after the response became stale, | |
638 however, this has lower priority than using the directive parameter. | |
634 </para> | 639 </para> |
635 | 640 |
636 <para id="fastcgi_cache_use_stale_updating"> | 641 <para id="fastcgi_cache_use_stale_updating"> |
637 Additionally, the <literal>updating</literal> parameter permits | 642 Additionally, the <literal>updating</literal> parameter permits |
638 using a stale cached response if it is currently being updated. | 643 using a stale cached response if it is currently being updated. |
639 This allows minimizing the number of accesses to FastCGI servers | 644 This allows minimizing the number of accesses to FastCGI servers |
640 when updating cached data. | 645 when updating cached data. |
646 The same behavior can be enabled with the | |
647 “<link url="https://tools.ietf.org/html/rfc5861#section-3">stale-while-revalidate</link>” | |
648 extension of the <header>Cache-Control</header> response header field (1.11.10) | |
649 for a specified number of seconds after the response became stale, | |
650 however, this has lower priority than using the directive parameter. | |
641 </para> | 651 </para> |
642 | 652 |
643 <para> | 653 <para> |
644 To minimize the number of accesses to FastCGI servers when | 654 To minimize the number of accesses to FastCGI servers when |
645 populating a new cache element, the <link id="fastcgi_cache_lock"/> | 655 populating a new cache element, the <link id="fastcgi_cache_lock"/> |