<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello list.<br>
<br>
I described this issue a few days ago on IRC and no-one could help
me, so I am now turning to you. Here's my problem:<br>
<br>
I run two squid servers, siblings with each other, let's call them A
and B. When clients send requests to A, and A thinks B has the
resource cached, but in reality B doesn't, the client will get a 504
error with the message: “Valid document was not found in the cache
and ‘only-if-cached’ directive was specified.” Vice versa if clients
send requests to B.<br>
<br>
I believe that A should catch this error and fetch the resource
directly, but instead it forwards it to the client, and I cannot
figure out why. I am not using allow-miss.<br>
<br>
What confuses me even more is that this didn't happen a month ago,
with the same setup.<br>
<br>
Below is my squid.conf for A. The squid.conf for B is the same, but
with B swapped for A in the cache_peer directive.<br>
<br>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; white-space: pre-wrap;">acl localnet src 10.0.0.0/8
acl localnet src fc00::/7
acl localnet src fe80::/10
http_access allow localhost manager
http_access deny manager
http_access allow localnet
http_access allow localhost
http_access deny all
http_port 3128
icp_access allow localnet
icp_access allow localhost
icp_access deny all
icp_port 3130
cache_dir aufs /var/cache/squid 16000 64 256
coredump_dir /var/cache/squid
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_peer B sibling 3128 3130</pre>
</body>
</html>