]> git.sesse.net Git - remoteglot/blobdiff - default.vcl
Fix display of castling (Chess.js does not like 0-0 and 0-0-0, but wants O-O and...
[remoteglot] / default.vcl
index ef0b7d75848228fd1ab4130dd01ddbb926d284b1..38631cb4f1d3c6f399dd4fb1378dec993339aa32 100644 (file)
@@ -24,7 +24,11 @@ sub vcl_recv {
 
 sub vcl_deliver { 
     if (resp.http.x-analysis) {
-        set resp.http.date = now;
+        set resp.http.Date = now;
+        unset resp.http.X-Varnish;
+        unset resp.http.Via;
+        unset resp.http.Age;
+        unset resp.http.X-Powered-By;
     }
     unset resp.http.x-analysis;
 }
@@ -47,7 +51,7 @@ sub vcl_backend_response {
         }
         if (beresp.http.content-type ~ "json") {
              set beresp.http.x-analysis = 1;
-             ban ( "obj.http.x-analysis == 1 && obj.http.x-remoteglot-last-modified != " + beresp.http.x-remoteglot-last-modified );
+             ban ( "obj.http.x-analysis == 1 && obj.http.x-rglm != " + beresp.http.x-rglm );
         }
         return (deliver);
     }