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 -
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