Search squid archive

Re: inconsistency with objects in squid cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2014-04-06 13:46 GMT-03:00, Eliezer Croitoru <eliezer@xxxxxxxxxxxx>:
> 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"???




[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux