{%- set cache_bypass = j2cfg.cache_bypass or [] -%} {%- if cache_bypass -%} ## disable (response) cache under following conditions scgi_cache_bypass {%- for v in cache_bypass %} {{ v | ngx_esc }} {%- endfor %} ; scgi_no_cache {%- for v in cache_bypass %} {{ v | ngx_esc }} {%- endfor %} ; {%- endif -%}