Re: How to access query parameter names with '-' in it

2014-11-13 Thread Jonathan Kolb
You can also accomplish this without matching in a map: map $pipe $dashed_param { default $arg_param-name; } (I tried a geo block first, but it expanded to a literal '$arg_param-name' for some reason) On Wed, Nov 12, 2014 at 5:43 PM, Francis Daly wrote: > On Wed, Nov 12, 2014 at 03:38:03AM -

Re: Using 2 intersection of conditions for proxy_cache_bypass (avoiding logical if/and)

2014-01-25 Thread Jonathan Kolb
You can chain two maps to get a logical and: map $request_method $is_get { default 0; GET 1; } map $http_cache_bypass $bypass_cache { default $is_get; "" 0; } proxy_cache_methods POST; proxy_cache_bypass $bypass_cache; # note the lack of : after default in the maps, it's incorrect to ha