]> git.kaiwu.me - nginx.git/commitdiff
$upstream_http_... should be uncacheable
authorIgor Sysoev <igor@sysoev.ru>
Thu, 19 Apr 2007 17:55:19 +0000 (17:55 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 19 Apr 2007 17:55:19 +0000 (17:55 +0000)
src/http/ngx_http_variables.c

index c3e1f6069db083c510465a90592baf64d3a59133..5aac76b7617961e10603b7225a0f7457f72de6af 100644 (file)
@@ -1304,6 +1304,7 @@ ngx_http_variables_init_vars(ngx_conf_t *cf)
         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;
         }