You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1878,6 +1879,9 @@ That is, if a request for /images/foo.jpg comes in and the file does not exist,
1878
1879
1879
1880
You can use [precontent_by_lua_block](#precontent_by_lua_block) to perform some preparatory functions after the access phase handler but before the proxy or other content handler. Especially some functions that cannot be performed in [balancer_by_lua_block](#balancer_by_lua_block).
1880
1881
1882
+
you can use the [precontent_by_lua_no_postpone](#precontent_by_lua_no_postpone) directive to control when to run this handler inside the "precontent" request-processing phase
1883
+
of Nginx.
1884
+
1881
1885
[Back to TOC](#directives)
1882
1886
1883
1887
precontent_by_lua_file
@@ -3710,6 +3714,19 @@ This directive was first introduced in the `v0.9.20` release.
3710
3714
3711
3715
[Back to TOC](#directives)
3712
3716
3717
+
precontent_by_lua_no_postpone
3718
+
-------------------------
3719
+
3720
+
**syntax:***precontent_by_lua_no_postpone on|off*
3721
+
3722
+
**default:***precontent_by_lua_no_postpone off*
3723
+
3724
+
**context:***http*
3725
+
3726
+
Controls whether or not to disable postponing [precontent_by_lua*](#precontent_by_lua_block) directives to run at the end of the `precontent` request-processing phase. By default, this directive is turned off and the Lua code is postponed to run at the end of the `precontent` phase.
Copy file name to clipboardExpand all lines: doc/HttpLuaModule.wiki
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1524,6 +1524,8 @@ That is, if a request for /images/foo.jpg comes in and the file does not exist,
1524
1524
1525
1525
You can use [[#precontent_by_lua_block|precontent_by_lua_block]] to perform some preparatory functions after the access phase handler but before the proxy or other content handler. Especially some functions that cannot be performed in [[#balancer_by_lua_block|balancer_by_lua_block]].
1526
1526
1527
+
You can use the [[#precontent_by_lua_no_postpone|precontent_by_lua_no_postpone]] directive to control when to run this handler inside the "precontent" request-processing phase of Nginx.
Controls whether or not to disable postponing [[#precontent_by_lua_block|precontent_by_lua_block*]] directives to run at the end of the <code>precontent</code> request-processing phase. By default, this directive is turned off and the Lua code is postponed to run at the end of the <code>precontent</code> phase.
0 commit comments