Bug 1161600
Summary: | Squid does not serve cached responses with Vary headers | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Nils Breunese <nils> | ||||
Component: | squid | Assignee: | Luboš Uhliarik <luhliari> | ||||
Status: | CLOSED ERRATA | QA Contact: | Ondřej Pták <optak> | ||||
Severity: | unspecified | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 7.0 | CC: | isenfeld, optak, thozza | ||||
Target Milestone: | rc | Keywords: | Patch | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
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 12:20:27 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Nils Breunese
2014-11-07 13:07:10 UTC
(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 |