Red Hat Bugzilla – Bug 1161600
Squid does not serve cached responses with Vary headers
Last modified: 2015-11-19 07:20:27 EST
Description of problem: When objects retrieved from web server return with a Vary header, all requests are always logged as a MISS. Version-Release number of selected component (if applicable): squid-3.3.8-12.el7_0.x86_64 See http://bugs.squid-cache.org/show_bug.cgi?id=3806 for upstream bug report and fix (included in upstream Squid 3.3.12).
(In reply to Nils Breunese from comment #0) > Description of problem: > > When objects retrieved from web server return with a Vary header, all > requests are always logged as a MISS. > > Version-Release number of selected component (if applicable): > > squid-3.3.8-12.el7_0.x86_64 > > See http://bugs.squid-cache.org/show_bug.cgi?id=3806 for upstream bug report > and fix (included in upstream Squid 3.3.12). Hi Nils, I tried to reproduce this bug on my laptop:. I tried several times to download txt file with which webserver is sending Vary header in this way: # my squid is running on VM with IP 192.168.122.120 $ http_proxy=http://192.168.122.120:8080/ wget -O /dev/null -S http://www.ietf.org/rfc/rfc3280.txt In access.log file I had this: 1429699953.761 1060 192.168.122.1 TCP_MISS/200 296764 GET http://www.ietf.org/rfc/rfc3280.txt - HIER_DIRECT/104.20.0.85 text/plain 1429700057.740 1607 192.168.122.1 TCP_MISS/200 296750 GET http://www.ietf.org/rfc/rfc3280.txt - HIER_DIRECT/104.20.1.85 text/plain 1429700060.228 688 192.168.122.1 TCP_MISS/200 296759 GET http://www.ietf.org/rfc/rfc3280.txt - HIER_DIRECT/104.20.1.85 text/plain After backporting patch, which you have proposed (http://bugs.squid-cache.org/show_bug.cgi?id=3806), I'm not getting TCP_MISS, so bug is fixed. access.log after applying patch: 1429705109.494 1082 192.168.122.1 TCP_MISS/200 296836 GET http://www.ietf.org/rfc/rfc3280.txt - HIER_DIRECT/104.20.0.85 text/plain 1429705110.876 16 192.168.122.1 TCP_MEM_HIT/200 296607 GET http://www.ietf.org/rfc/rfc3280.txt - HIER_NONE/- text/plain 1429705113.691 15 192.168.122.1 TCP_MEM_HIT/200 296607 GET http://www.ietf.org/rfc/rfc3280.txt - HIER_NONE/- text/plain
Created attachment 1017404 [details] Patch fixing this bug
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-2378.html