mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
make $request_method non-cacheable
This commit is contained in:
parent
ff1a888caf
commit
1ee4b09091
@ -196,7 +196,8 @@ static ngx_http_variable_t ngx_http_core_variables[] = {
|
|||||||
{ ngx_string("server_name"), NULL, ngx_http_variable_server_name, 0, 0, 0 },
|
{ ngx_string("server_name"), NULL, ngx_http_variable_server_name, 0, 0, 0 },
|
||||||
|
|
||||||
{ ngx_string("request_method"), NULL,
|
{ ngx_string("request_method"), NULL,
|
||||||
ngx_http_variable_request_method, 0, 0, 0 },
|
ngx_http_variable_request_method, 0,
|
||||||
|
NGX_HTTP_VAR_NOCACHEABLE, 0 },
|
||||||
|
|
||||||
{ ngx_string("remote_user"), NULL, ngx_http_variable_remote_user, 0, 0, 0 },
|
{ ngx_string("remote_user"), NULL, ngx_http_variable_remote_user, 0, 0, 0 },
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user