15 lines
350 B
Plaintext
15 lines
350 B
Plaintext
|
{#- TODO: precise quotation -#}
|
||
|
{%- set cache_bypass = j2cfg.cache_bypass or [] -%}
|
||
|
{%- if cache_bypass -%}
|
||
|
## disable (response) cache under following conditions
|
||
|
fastcgi_cache_bypass
|
||
|
{%- for v in cache_bypass %}
|
||
|
{{ v.__repr__() }}
|
||
|
{%- endfor %}
|
||
|
;
|
||
|
fastcgi_no_cache
|
||
|
{%- for v in cache_bypass %}
|
||
|
{{ v.__repr__() }}
|
||
|
{%- endfor %}
|
||
|
;
|
||
|
{%- endif -%}
|