Restoring cookies on a miss

Tollef Fog Heen tfheen at redpill-linpro.com
Wed Jan 27 08:57:21 CET 2010


]] John Norman 

Hi,

| And again, here's the use case:
| 
| We have certain pages that should never be cached. The user comes in
| with cookies set: "session=foo" or some such.
| 
| We strip the cookie and do a lookup.
| 
| If there's a hit, return what is in the cache.
| 
| If there's a miss, we'd like to fetch with the cookie.
| 
| Then, in fetch, pass for pages set for no-cache, and deliver for those
| that are public.

Sounds reasonable enough.

| It can be assumed that these pages are never hit first by non-cookied users.
| 
| But -- I am seeing a lot of requests that have no cookies on the backend.

Can you capture a varnishlog from when this happens?  It'd be
interesting to see if the incoming request has a cookie set.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73



More information about the varnish-misc mailing list