From 1ee4b090911cbb9b5830ffa8271056283f756fbb Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Wed, 3 Mar 2010 16:14:07 +0000 Subject: [PATCH] make $request_method non-cacheable --- src/http/ngx_http_variables.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/http/ngx_http_variables.c b/src/http/ngx_http_variables.c index 713df2230..f3fc9f683 100644 --- a/src/http/ngx_http_variables.c +++ b/src/http/ngx_http_variables.c @@ -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("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 },