Re: Filtering by specific cookie

2008-10-19 Thread Per Buer
Mikkel Høgh skrev:

 In http://varnish.projects.linpro.no/wiki/VCLExampleRemovingSomeCookies,
 the example shows removing cookies with regular expressions via the
 regsub function which I can't seem to find documentation on.
 Is there a similar function just for checking whether there's a match,
 or even better, a way to check this that doesn't involve regular
 expressions?

in vcl_revc you can do stuff like:

if (req.http.cookie ~ foo.*bar|bar.*foo) {
lookup;
}

-- 
Per Buer - Leder Infrastruktur og Drift - Redpill Linpro
Telefon: 21 54 41 21 - Mobil: 958 39 117
http://linpro.no/ | http://redpill.se/



signature.asc
Description: OpenPGP digital signature
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Filtering by specific cookie

2008-10-18 Thread Mikkel H??gh

Hi there,

I'm trying to throw together a workaround for a tricky caching issue
with the CMS/CMF I'm using, Drupal, and for that purpose, I need to take
decisions about whether to serve cached content on the basis of the
client not sending a particular cookie.

In http://varnish.projects.linpro.no/wiki/VCLExampleRemovingSomeCookies,
the example shows removing cookies with regular expressions via the
regsub function which I can't seem to find documentation on.
Is there a similar function just for checking whether there's a match,
or even better, a way to check this that doesn't involve regular
expressions?

Kind regards,

 Mikkel H??gh
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc