disable_cache_deliver.html.twig in Fastly 8.3
{% for rule in rules %}
{% if rule.mode in ['both','browser'] %}
if (req.url ~ "{{ rule.pattern }}" && fastly.ff.visits_this_service == 0 ) {
set resp.http.Cache-Control = "no-cache, private";
unset resp.http.Expires;
unset resp.http.Pragma;
}
{% endif %}
{% endfor %}
File
fastly_edge_modules/templates/disable_cache_deliver.html.twig
View source
- {% for rule in rules %}
- {% if rule.mode in ['both','browser'] %}
- if (req.url ~ "{{ rule.pattern }}" && fastly.ff.visits_this_service == 0 ) {
- set resp.http.Cache-Control = "no-cache, private";
- unset resp.http.Expires;
- unset resp.http.Pragma;
- }
- {% endif %}
- {% endfor %}