15 lines
374 B
Django/Jinja
15 lines
374 B
Django/Jinja
{#- TODO: precise quotation -#}
|
|
{%- set cache_bypass = j2cfg.proxy_cache_bypass or j2cfg.cache_bypass or [] -%}
|
|
{%- if cache_bypass -%}
|
|
## disable (response) cache under following conditions
|
|
proxy_cache_bypass
|
|
{%- for v in cache_bypass %}
|
|
{{ v.__repr__() }}
|
|
{%- endfor %}
|
|
;
|
|
proxy_no_cache
|
|
{%- for v in cache_bypass %}
|
|
{{ v.__repr__() }}
|
|
{%- endfor %}
|
|
;
|
|
{%- endif -%} |