Cookie VMOD keep/filter documentation issue

Dridi Boukelmoune dridi at varni.sh
Tue Apr 6 18:28:47 UTC 2021


On Tue, Apr 6, 2021 at 5:41 PM Justin Lloyd <justinl at arena.net> wrote:
>
> Forget I asked, that was a dumb question since it's a regex and | can be used. /sigh

Yes, "|" is an option.

<snip>
> Hi Dridi,
>
> Thanks for confirming that! However, is there then a way to get the effect of being able to pass a regex to keep_re() and filter_re()? I just started working with the cookie vmod this morning and this would be a useful feature. As I understand it, Varnish 6.4 (we're on 6.5) replaced filter() and filter_except() with keep() and keep_re() and that the previous functions could take CSV strings.

I think there is a misunderstanding here.

We renamed filter_except() to keep() because it had better semantics,
much easier to understand. The filter_re() and keep_re() functions are
regular expression variants for basically the same operations: filtering
some cookies out, or keeping a subset of the cookies.

Cheers,
Dridi


More information about the varnish-misc mailing list