configuration-templates
/varnish/4/default.vcl |
@@ -356,7 +356,7 @@ |
set beresp.http.Expires = "" + (now + 1w); |
} |
# Immediately |
# Not exactly "immediately" since we do not want to have to recache on fast reloads - ideally, set this to average page log time. |
# Not exactly "immediately" since we do not want to have to recache on fast reloads - ideally, set this to average page load time. |
if(beresp.http.content-type ~ "(?i)(application/(json|ld\+json|schema\+json|vnd\.geo\+jsonxml|x\-web\-app\-manifest\+json))|(text/(xml|cache\-manifest|html))") { |
set beresp.http.Expires = "" + (now + 3s); |
} |