Re: [squid-users] Cookie problem

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Mon, 28 May 2007 22:12:10 +0200

mån 2007-05-28 klockan 14:57 +0200 skrev Ludovit Koren:

> The caches work ok. The problem is when a client requests a page where
> a cookie is set. When all the pages are served using the same parent
> cache it works correctly. When the parent cache changes I get an error
> message that the cookie is not valid (it is coming from another
> IP). It does not matter if I am using any options on the cache_peer
> configuration line (I used round-robin and sourcehash).

The only forwarding mechanism where this works is sourcehash, but you
must then disable everything else (ICP, Digest, HTCP, ICMP), and parent
cache hit ratio will suffer.

As a mid-approach you can build a blacklist of broken sites which
assumes the IP will remain unchanged for a complete browsing session and
send these to a set of cache_peer using sourcehash.. (might be the same
peers but with different names..). See cache_peer_access for how to
select what gets sent to which peers, and the name option to cache_peer
for specifying the same peer multiple times with different options.

Regards
Henrik

Received on Mon May 28 2007 - 14:12:17 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Jun 01 2007 - 12:00:05 MDT