Closed joshuaspence closed 7 years ago
Looks mostly good, I just have few remarks:
That's it for the nitpicking. However, is there a real use case for this?
Thanks, that's good feedback. match_list
is a much better name than greylist
(variables names are always hard).
Yes, there is a real use case for this. We have Varnish configured to strip out a bunch of tracking cookies from all requests. This includes Google Analytics cookies and a few others that I can't remember off the top of my head. We currently strip these cookies out using a regular expression, but a cookie.filter
function would make our VCL much cleaner.
Very well, that's good to go in then.
I can either pull what you have now and polish myself, or let you have all the glory, as you prefer.
Sure, I can finish it off.
Merged, thanks!
Fixes #23. Adds a
cookie.filter
function which is basically the oppositie ofcookie.filter_except
.