diff --git a/modules/datagovuk/datagovuk.vcl.tftpl b/modules/datagovuk/datagovuk.vcl.tftpl index 0b658df..f6a8f32 100644 --- a/modules/datagovuk/datagovuk.vcl.tftpl +++ b/modules/datagovuk/datagovuk.vcl.tftpl @@ -164,11 +164,13 @@ sub vcl_fetch { return (pass); } - if (beresp.status == 500 || beresp.status == 503) { - set beresp.ttl = 1s; - set beresp.stale_if_error = 5s; - return (deliver); - } + %{ if environment != "integration"} + if (beresp.status == 500 || beresp.status == 503) { + set beresp.ttl = 1s; + set beresp.stale_if_error = 5s; + return (deliver); + } + %{ endif ~} if (beresp.http.Expires || beresp.http.Surrogate-Control ~ "max-age" || beresp.http.Cache-Control ~"(s-maxage|max-age)") { # keep the ttl here