Commits

Ian Bicking  committed d22f43b

fix X-Forwarded-For regex

  • Participants
  • Parent commits a37c0e5

Comments (0)

Files changed (1)

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

     # 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,", "");
+    set beresp.http.Vary = regsub(beresp.http.Vary, ",?X-Forwarded-For", "");
     return(pass);
 }