Re: [squid-users] inconsistency with objects in squid cache

From: Sylvio Cesar <sylviotamorim_at_gmail.com>
Date: Mon, 7 Apr 2014 11:06:11 -0300

My squid -v

Squid Cache: Version 3.4.4
configure options: '--prefix=/usr' '--sysconfdir=/etc/squid'
'--bindir=/usr/sbin' '--sbindir=/usr/sbin' '--localstatedir=/var'
'--libexecdir=/usr/sbin' '--datadir=/usr/share/squid'
'--mandir=/usr/share/man' '--libdir=/usr/lib'
'--sharedstatedir=/var/squid' '--with-logdir=/var/log/squid'
'--with-swapdir=/var/cache/squid' '--with-pidfile=/var/run/squid.pid'
'--with-dl' '--with-maxfd=16384' '--enable-async-io'
'--enable-maintainer-mode' '--enable-storeio' '--enable-disk-io'
'--enable-removal-policies=heap,lru' '--enable-icmp'
'--enable-delay-pools' '--enable-esi' '--enable-icap-client'
'--enable-useragent-log' '--enable-referer-log'
'--enable-kill-parent-hack' '--enable-arp-acl' '--enable-ssl'
'--enable-forw-via-db' '--enable-cache-digests'
'--enable-linux-netfilter' '--with-large-files' '--enable-underscores'
'--enable-auth' '--enable-basic-auth-helpers'
'--enable-ntlm-auth-helpers' '--enable-negotiate-auth-helpers'
'--enable-digest-auth-helpers' '--enable-external-acl-helpers'
'--enable-ntlm-fail-open' '--enable-stacktraces'
'--enable-x-accelerator-vary' '--with-default-user=squid'
'--disable-ident-lookups' '--disable-strict-error-checking'
'--enable-zph-qos' '--enable-follow-x-forwarded-for' 'CFLAGS=-O2 -g
-m32 -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2
-fstack-protector -funwind-tables -fasynchronous-unwind-tables
-DNUMTHREADS=60 -march=nocona -03 -pipe -fomit-frame-pointer
-funroll-loops -ffast-math -fno-exceptions'
'LDFLAGS=-Wl,-z,relro,-z,now -pie' 'CXXFLAGS=-O2 -g -m32 -march=i586
-mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector
-funwind-tables -fasynchronous-unwind-tables -fPIE -fPIC
-DOPENSSL_LOAD_CONF'

2014-04-07 11:02 GMT-03:00, Sylvio Cesar <sylviotamorim_at_gmail.com>:
> 2014-04-06 13:46 GMT-03:00, Eliezer Croitoru <eliezer_at_ngtech.co.il>:
>> On 04/06/2014 05:29 PM, Sylvio Cesar wrote:
>>> but this happens only in the network 10.21.155.0/24.
>> then squid.conf and the debug_options output would help to understand if
>> it is the reason or there is another reason.
>>
>> Eliezer
>>
>
> Hi Eliezer,
>
> I noticed that when there is the header "Vary:
> Accept-Encoding,User-Agent" the object is not cached.
>
> Following logs cache.log and cachemgr.cgi
>
> HTTP/1.1 200 OK
> Date: Mon, 07 Apr 2014 12:26:02 GMT
> Server: Apache/2.0.63
> Last-Modified: Tue, 11 Mar 2014 22:31:34 GMT
> ETag: "586039-e63e58-484cbd80"
> Accept-Ranges: bytes
> Content-Length: 15089240
> Vary: Accept-Encoding,User-Agent
> Cache-Control: public
> Keep-Alive: timeout=15, max=35
> Connection: Keep-Alive
> Content-Type: text/plain; charset=ISO-8859-1
>
> FLV^A^E
> ----------
> 2014/04/07 09:26:06.755 kid1| ctx: exit level 0
> 2014/04/07 09:26:06.755 kid1| ctx: enter level 0:
> 'http://xxx.example/video/video.flv'
> 2014/04/07 09:26:06.755 kid1| http.cc(919) haveParsedReplyHeaders:
> HTTP CODE: 200
> 2014/04/07 09:26:06.755 kid1| http.cc(656) httpMakeVaryMark:
> httpMakeVaryMark: accept-encoding,
> user-agent="curl%2F7.19.0%20(i686-suse-linux-gnu)%20libcurl%2F7.19.0%20OpenSSL%2F0.9.8h%20zlib%2F1.2.3%20libidn%2F1.10"
> 2014/04/07 09:26:06.755 kid1| http.cc(656) httpMakeVaryMark:
> httpMakeVaryMark: accept-encoding,
> user-agent="curl%2F7.19.0%20(i686-suse-linux-gnu)%20libcurl%2F7.19.0%20OpenSSL%2F0.9.8h%20zlib%2F1.2.3%20libidn%2F1.10"
> 2014/04/07 09:26:06.756 kid1| ctx: exit level 0
> 2014/04/07 09:26:06.756 kid1| client_side.cc(1459) sendStartOfMessage:
> HTTP Client local=127.0.0.1:3128 remote=127.0.0.1:44323 FD 14 flags=1
> 2014/04/07 09:26:06.756 kid1| client_side.cc(1460) sendStartOfMessage:
> HTTP Client REPLY:
> ---------
> HTTP/1.1 200 OK
> Date: Mon, 07 Apr 2014 12:26:02 GMT
> Server: Apache/2.0.63
> Last-Modified: Tue, 11 Mar 2014 22:31:34 GMT
> ETag: "586039-e63e58-484cbd80"
> Accept-Ranges: bytes
> Content-Length: 15089240
> Vary: Accept-Encoding,User-Agent
> Cache-Control: public
> Content-Type: text/plain; charset=ISO-8859-1
> X-Cache: MISS from sylviosuse11
> X-Cache-Lookup: MISS from sylviosuse11:3128
> Via: 1.1 sylviosuse11 (squid/3.4.4)
> Connection: keep-alive
>
>
> ------
>
> KEY 7351B3AA6DB80247DE63873CAB59CFE8
> STORE_OK IN_MEMORY SWAPOUT_DONE PING_DONE
> CACHABLE,DISPATCHED,VALIDATED
> LV:1396873562 LU:1396873566 LM:1394577094 EX:-1
> 0 locks, 0 clients, 1 refs
> Swap Dir 0, File 0X000001
> GET http://xxx.example/video/video.flv
> vary_headers: accept-encoding,
> user-agent="curl%2F7.19.0%20(i686-suse-linux-gnu)%20libcurl%2F7.19.0%20OpenSSL%2F0.9.8h%20zlib%2F1.2.3%20libidn%2F1.10"
> inmem_lo: 0
> inmem_hi: 15089604
> swapout: 15089604 bytes queued
>
>
> KEY E08FBDC74EAD09CEBCC38380DACCF63F
> STORE_OK IN_MEMORY SWAPOUT_DONE PING_NONE
> CACHABLE,VALIDATED
> LV:1396873566 LU:1396873566 LM:-1 EX:1396973566
> 0 locks, 0 clients, 0 refs
> Swap Dir 0, File 00000000
> GET http://xxx.example/video/video.flv
> inmem_lo: 0
> inmem_hi: 227
> swapout: 227 bytes queued
>
>
> How to make squid perform the object cache when found in the header
> "Vary: Accept-Encoding,User-Agent"???
>

-- 
 Att,
Sylvio César,
LPIC1, LPIC2, RHCT, RHCE, NCLA, FreeBSD Committer.
----
Se vós estiverdes em mim, e as minhas palavras estiverem em vós, pedireis
tudo o que quiserdes, e vos será feito. João
15:7<http://www.bibliaonline.com.br/acf/jo/15/7>
Received on Mon Apr 07 2014 - 14:06:19 MDT

This archive was generated by hypermail 2.2.0 : Tue Apr 08 2014 - 12:00:05 MDT