using $upstream* variables inside map directive

unoobee nginx-forum at
Thu Nov 12 07:33:49 UTC 2020

I tried using $upstream_http_content_length inside the map directive with
the "volatile" parameter to specify the proxy_cache behavior, but the map
still uses the default value.
Is there any way to set the proxy_cache behavior depending on
$upstream_http_content_length via the map directive?

Posted at Nginx Forum:,249880,289963#msg-289963

More information about the nginx mailing list