[squid-users] cache behaviour when hostname is the same but ip address is different

Amos Jeffries squid3 at treenet.co.nz
Tue Dec 30 06:39:24 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 30/12/2014 7:08 p.m., James Harper wrote:
> Suppose hostname hostsite.com resolves to 2 different IP
> addresses. If a client in transparent mode retrieves a page (which
> is then cached by squid), and another client in transparent mode
> retrieves the same page but from the other IP address, is the page
> served from the cache?
> 

Provided the requested object (not "page") is cached by Squid the
second client should be served a HIT.

If the second client TCP connection is going to some other IP address
entirely, then no it wont be cached - it may or may not HIT depending
on whether the client encounters a bug we have not yet resolved.


> If not, is there a way I can get this behaviour? I note that the
> site in question does provide an ETag.

ETag will only help if it is presented the same by all origin servers
of the domain, and only in the cases of revalidation.

Amos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQEcBAEBAgAGBQJUokibAAoJELJo5wb/XPRjMVkH/RlcCSZaxFE3nA+QFHoBqoRa
6LE7hlAs6xs/wHcgJdSIjqc9MlJ6rn2RX+kTQJ1RnA36Rn/Aok6N+jAVmQFU88z9
LFp4FROnkBJVMuccnS102W4l8UpeT0kv+RvG/O9Y6HJZzoKHoliiSq50r1GNm+yU
sMUPxLEbIQerhViDl63mBAwQfkdkgGm0Uo7aX/piu36mD7eptF1Hf9GKSoD/0ndr
x+oFTRku7T0YMrLxGv7K8uOxmsl69EJfAC8geFOBYA7SS3LjSu6oRZwwMKBYNyuE
E/Ovw+cQ+/wNsclTPazHW72PI7eWqceG+3an02EHQ40EKTwue0mt/VP/aaM36Oc=
=y9rx
-----END PGP SIGNATURE-----


More information about the squid-users mailing list