I'm configuring FastCGI caching and adding some maps to skip cache. Specifically for WP bu it doesn't matter.
I have similar config (adding only related parts there):
https://pastebin.com/GTetQkHT
As long, as I have "default" there - it always skipping cache, if only few maps' requirements are being met, not all of them.
And that's logical - as other map will rewrite $skip_cache variable and it'll be 0 then, which leads to page be cached.
But when I'm deleting "default" everywhere - it works. And that's strange, as per doc:
http://nginx.org/en/docs/http/ngx_http_fastcgi_module.html#fastcgi_no_cache
"If at least one value of the string parameters is not empty and is not equal to “0” then the response will not be saved"
And:
http://nginx.org/en/docs/http/ngx_http_map_module.html#map
"default value -
sets the resulting value if the source value matches none of the specified variants. When default is not specified, the default resulting value will be an empty string."
So, when I'm not specifying default value, it should set $skip_cache to an empty string. And in this case cache should be saved, but it's being bypassed anyway (like when map works). Is it bug? Or it's designed that way and I'm missing something in the doc?