Cookie issue
Tollef Fog Heen
tfheen at linpro.no
Fri Oct 3 15:41:36 CEST 2008
]] Morten Bekkelund
| I'm looking for a good approach to force a "lookup" when these cookies
| are set, but still also force a "pass" when other cookies are set OR
| even do a "pass" for the entire session when the req.url matches
| ^/admin ...for instance.
You probably want to do regex matches against req.http.cookie to ensure
you only cache for particular pages. I'd also recommend reading through
http://varnish.projects.linpro.no/wiki/VCLExampleCacheCookies if you
haven't.
Doing pass on ^/admin should be something like
if (req.url ~ "^/admin") {
pass;
}
in vcl_recv, so I presume that's not the problem you are running into?
--
Tollef Fog Heen
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73
More information about the varnish-misc
mailing list