Commits

Ian Bicking committed a37c0e5

remove X-Forwarded-For from Vary header

Comments (0)

Files changed (1)

silverlining/server-root/etc/varnish/default.vcl

         unset beresp.http.Set-Cookie;
         return(deliver);
     }
+    # Apache adds Vary: X-Forwarded-For to each response, which would
+    # mean a separate cache for each client; not our intent, so we'll
+    # ignore it:
+    set beresp.http.Vary = regsub(beresp.http.Vary, "X-Forwarded-For,", "");
     return(pass);
 }