You are here

disable_cache_recv.html.twig in Fastly 8.3

{% for rule in rules %}
  {% if rule.mode in ['both','fastly']  %}
    if (req.url ~ "{{ rule.pattern }}") {
      set req.http.x-pass = "1";
    }
  {% endif %}
{% endfor %}

File

fastly_edge_modules/templates/disable_cache_recv.html.twig
View source
  1. {% for rule in rules %}
  2. {% if rule.mode in ['both','fastly'] %}
  3. if (req.url ~ "{{ rule.pattern }}") {
  4. set req.http.x-pass = "1";
  5. }
  6. {% endif %}
  7. {% endfor %}