X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=default.vcl;h=38631cb4f1d3c6f399dd4fb1378dec993339aa32;hp=ef0b7d75848228fd1ab4130dd01ddbb926d284b1;hb=53e5d8fa00e9c8963127ff7ac7c47d078780d24b;hpb=af901f11d1572468431e92d55a5f9980d39f3609 diff --git a/default.vcl b/default.vcl index ef0b7d7..38631cb 100644 --- a/default.vcl +++ b/default.vcl @@ -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); }