vcl question cookie

Dag-Erling Smørgrav des at linpro.no
Thu May 10 13:30:12 CEST 2007


jean-marc pouchoulon <jean-marc.pouchoulon at ac-montpellier.fr> writes:
> I 'm trying to limit the absence of caching with cookies.
>
> if (req.url ~ "\.pdf$|\.png$|\.gif$|\.jpg$|\.mp3$|\.svf$")  {
>      lookup;
>
>     if (req.http.Authenticate || req.http.Cookie ~ "__ac=") {
>                        pipe;
>     }
> }
>
> This is not working , all is cached.
> where am I wrong ?

"lookup" terminates vcl_recv().  The nested if statement is never
reached.

DES
-- 
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no



More information about the varnish-misc mailing list