X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=default.vcl;h=bb52d6431000f66fb22214d51c0eb1f9d89e5be9;hp=aa2585f56cd0a152350bd631a82bc9145dadc304;hb=5a9dbd3f72666ce02396c30d1b74dae3ab32d40b;hpb=d34e567b41978f046f705dc6cb302547fd766b2a 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;