# HG changeset patch # User Yaroslav Zhuravlev # Date 1518719076 -10800 # Node ID d45887ccafdeba3f4298049be2257cc11a91eb96 # Parent c2e3884f1a9c964c4953c4ca3c068ffe9b30f657 Documented HTTP/2 server push. diff --git a/xml/en/docs/http/ngx_http_v2_module.xml b/xml/en/docs/http/ngx_http_v2_module.xml --- a/xml/en/docs/http/ngx_http_v2_module.xml +++ b/xml/en/docs/http/ngx_http_v2_module.xml @@ -9,7 +9,7 @@ + rev="11">
@@ -127,6 +127,21 @@ Sets the timeout of inactivity after whi + +number +10 +http +server +1.13.9 + + +Limits the maximum number of concurrent +push requests in a connection. + + + + + number 128 @@ -183,10 +198,63 @@ For most requests, the default limit sho 1.11.6 -Sets the maximum number of requests that can be -served through one HTTP/2 connection, -after which the connection is closed -and the client should use a new connection. +Sets the maximum number of requests (including +push requests) that can be served +through one HTTP/2 connection, +after which the next client request will lead to connection closing +and the need of establishing a new connection. + + + + + + +uri | off +off +http +server +location +1.13.9 + + +Pre-emptively sends +(pushes) +a request to the specified uri +along with the response to the original request. +Only relative URIs with absolute path will be processed, +for example: + +http2_push /static/css/main.css; + +The uri value can contain variables. + + + +Several http2_push directives +can be specified on the same configuration level. +The off parameter cancels the effect +of the http2_push directives +inherited from the previous configuration level. + + + + + + +on | off +off +http +server +location +1.13.9 + + +Enables automatic conversion of +preload +links +specified in the
Link
response header fields into +push +requests.
diff --git a/xml/ru/docs/http/ngx_http_v2_module.xml b/xml/ru/docs/http/ngx_http_v2_module.xml --- a/xml/ru/docs/http/ngx_http_v2_module.xml +++ b/xml/ru/docs/http/ngx_http_v2_module.xml @@ -9,7 +9,7 @@ + rev="11">
@@ -127,6 +127,21 @@ server { + +число +10 +http +server +1.13.9 + + +Ограничивает максимальное число параллельных +push-запросов в соединении. + + + + + число 128 @@ -183,10 +198,62 @@ server { 1.11.6 -Задаёт максимальное число запросов, которые можно +Задаёт максимальное число запросов (включая +push-запросы), которые можно сделать по одному соединению HTTP/2, -после чего соединение закрывается -и клиенту необходимо использовать новое соединение. +после чего очередной клиентский запрос приведёт к закрытию соединения +и необходимости установить новое соединение. + + + + + + +uri | off +off +http +server +location +1.13.9 + + +Заблаговременно отправляет +(push) запрос +к заданному uri +вместе с ответом на оригинальный запрос. +Будут обработаны только относительные URI с абсолютными путями, +например: + +http2_push /static/css/main.css; + +В значении uri допустимо использование переменных. + + + +На одном уровне конфигурации можно указать несколько +http2_push директив. +Параметр off отменяет действие +унаследованных с предыдущего уровня конфигурации +директив http2_push. + + + + + + +on | off +off +http +server +location +1.13.9 + + +Разрешает автоматическое преобразование +preload +links, +указанных в полях
Link
заголовка ответа, в +push-запросы.