changeset 1173:2a0b86713cc6

$upstream_http_... should be uncacheable
author Igor Sysoev <igor@sysoev.ru>
date Thu, 19 Apr 2007 17:55:19 +0000
parents 383ae25c3171
children 6be5ee17d80b
files src/http/ngx_http_variables.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_variables.c
+++ b/src/http/ngx_http_variables.c
@@ -1304,6 +1304,7 @@ ngx_http_variables_init_vars(ngx_conf_t 
         if (ngx_strncmp(v[i].name.data, "upstream_http_", 14) == 0) {
             v[i].get_handler = ngx_http_upstream_header_variable;
             v[i].data = (uintptr_t) &v[i].name;
+            v[i].flags = NGX_HTTP_VAR_NOCACHABLE;
 
             continue;
         }