]> git.sesse.net Git - remoteglot/blobdiff - default.vcl
Fix (?) an issue where going from a display line all the back the root would hit...
[remoteglot] / default.vcl
index aa2585f56cd0a152350bd631a82bc9145dadc304..bb52d6431000f66fb22214d51c0eb1f9d89e5be9 100644 (file)
@@ -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 (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;
         if (beresp.http.content-type ~ "json") {
              set beresp.http.x-analysis = 1;
              set beresp.http.x-analysis-backend = bereq.http.x-analysis-backend;