Is there a way to jump to different locations depending on $upstream_cache_status?
I tried something like
set $skip_cache 0;
if ($upstream_cache_status = HIT) {
set $skip_cache 0;
}
if ($upstream_cache_status != HIT) {
set $skip_cache 1;
}
But $upstream_cache_status returns empty value.
content_by_lua also returns empty value.
Thanks in advance
I tried something like
set $skip_cache 0;
if ($upstream_cache_status = HIT) {
set $skip_cache 0;
}
if ($upstream_cache_status != HIT) {
set $skip_cache 1;
}
But $upstream_cache_status returns empty value.
content_by_lua also returns empty value.
Thanks in advance