2024-09-17 14:11:00 +03:00
|
|
|
{%- set cache_bypass = j2cfg.cache_bypass or [] -%}
|
|
|
|
{%- if cache_bypass -%}
|
|
|
|
## disable (response) cache under following conditions
|
|
|
|
scgi_cache_bypass
|
|
|
|
{%- for v in cache_bypass %}
|
2024-11-08 12:10:06 +03:00
|
|
|
{{ v | ngx_esc }}
|
2024-09-17 14:11:00 +03:00
|
|
|
{%- endfor %}
|
|
|
|
;
|
|
|
|
scgi_no_cache
|
|
|
|
{%- for v in cache_bypass %}
|
2024-11-08 12:10:06 +03:00
|
|
|
{{ v | ngx_esc }}
|
2024-09-17 14:11:00 +03:00
|
|
|
{%- endfor %}
|
|
|
|
;
|
|
|
|
{%- endif -%}
|