]> git.kaiwu.me - nginx.git/commitdiff
make $arg_ variables non-cacheable
authorIgor Sysoev <igor@sysoev.ru>
Thu, 22 Apr 2010 13:35:30 +0000 (13:35 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 22 Apr 2010 13:35:30 +0000 (13:35 +0000)
src/http/ngx_http_variables.c

index f3fc9f68326e596767991140c3f05c02efe669a1..eee997b1921a57036cbb91e0cd5bae411930c1e7 100644 (file)
@@ -1937,6 +1937,7 @@ ngx_http_variables_init_vars(ngx_conf_t *cf)
         if (ngx_strncmp(v[i].name.data, "arg_", 4) == 0) {
             v[i].get_handler = ngx_http_variable_argument;
             v[i].data = (uintptr_t) &v[i].name;
+            v[i].flags = NGX_HTTP_VAR_NOCACHEABLE;
 
             continue;
         }