Add support for 'nocache' flag to map directive

Eran Kornblau eran.kornblau at
Mon Nov 28 10:58:01 UTC 2016

Hi all,

I created this post yesterday -,271197
And thought about submitting a patch for it.
Before I do, I wanted to check with you whether this is something you'll be willing to accept
(assuming the implementation is correct, according to standards, doesn't break things etc.)

In short, the idea is to add an optional flag to the map directive that make the map module
pass NGX_HTTP_VAR_NOCACHEABLE in its call to ngx_http_add_variable.
The conf structure will look like:
map $input_var $output_var nocache {
default 0;
"some value" 1;

Thank you,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx-devel mailing list