Hello,
I am trying to setup a sibling cache using htcp between the sibling
cache_peers so that squid will differentiate cache hits from different
user agents. When I hit the squid via localhost it queries it's sibling
cache and is able to serve back the cache hit from the sibling however
when I hit it using a non localhost address it appears to use it's IP in
the request to it's sibling. . .
here's my setup:
sibling caches - transcode-cache-04 (10.0.21.15) and transcode-cache-05
(10.0.21.25)
parent cache - transcode-cache-prod
If I do the following hit:
curl -D - -s -o /dev/null -A "audio/VAN_MP3 FBR 64kbps 125kB.xml"
"http://127.0.0.1:8080/TranscodingInterface/preview/RAAz1rqL"
on transcode-cache-05 with that piece of content in the cache on
transcode-cache-04 it works as it queries the cache for the request:
http://127.0.0.1:8080/TranscodingInterface/preview/RAAz1rqL which is the
same on both 04 and 05.
If I do the following hit:
curl -D - -s -o /dev/null -A "audio/VAN_MP3 FBR 64kbps 125kB.xml"
"http://10.0.21.25:8080/TranscodingInterface/preview/RAAz1rqL"
it makes the request from it's sibling cache (10.0.21.15) as:
http://10.0.21.25:8080/TranscodingInterface/preview/RAAz1rqL which will
never be in the cache for 10.0.21.15 even though the actual content is
in the cache.
My question is how do I get squid using HTCP to query the sibling cache
with the sibling's IP as opposed to the originating cache's IP? Is this
possible? If not how do others use HTCP?
Thanks for any help,
-Dan