Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1161600 - Squid does not serve cached responses with Vary headers
Squid does not serve cached responses with Vary headers
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: squid (Show other bugs)
7.0
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Luboš Uhliarik
Ondřej Pták
: Patch
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-11-07 08:07 EST by Nils Breunese
Modified: 2015-11-19 07:20 EST (History)
3 users (show)

See Also:
Fixed In Version: squid-3.3.8-15.el7
Doc Type: Bug Fix
Doc Text:
Cause: Previously, Squid didn't serve cached object, if server's response contained VARY header. Consequence: Squid didn't use cache. Fix: Bug was fixed. Result: Squid is now serving cached objects, even if server's response contains VARY header.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-19 07:20:27 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch fixing this bug (2.66 KB, patch)
2015-04-22 08:27 EDT, Luboš Uhliarik
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2378 normal SHIPPED_LIVE Moderate: squid security and bug fix update 2015-11-19 05:51:27 EST

  None (edit)
Description Nils Breunese 2014-11-07 08:07:10 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).
Comment 2 Luboš Uhliarik 2015-04-22 08:26:34 EDT
(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
Comment 3 Luboš Uhliarik 2015-04-22 08:27:24 EDT
Created attachment 1017404 [details]
Patch fixing this bug
Comment 9 errata-xmlrpc 2015-11-19 07:20:27 EST
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

Note You need to log in before you can comment on or make changes to this bug.