X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=default.vcl;h=bb52d6431000f66fb22214d51c0eb1f9d89e5be9;hb=83aa0538ddb9037d37295f7e6e68348773661d7a;hp=aa2585f56cd0a152350bd631a82bc9145dadc304;hpb=d34e567b41978f046f705dc6cb302547fd766b2a;p=remoteglot diff --git a/default.vcl b/default.vcl index aa2585f..bb52d64 100644 --- a/default.vcl +++ b/default.vcl @@ -55,6 +55,12 @@ sub vcl_backend_response { if (beresp.http.content-type ~ "text" || beresp.http.content-type ~ "json") { set beresp.do_gzip = true; } + if (bereq.url ~ "^/hash/") { + set beresp.ttl = 5s; + set beresp.http.x-analysis = 1; + set beresp.http.x-analysis-backend = bereq.http.x-analysis-backend; + return (deliver); + } if (beresp.http.content-type ~ "json") { set beresp.http.x-analysis = 1; set beresp.http.x-analysis-backend = bereq.http.x-analysis-backend;