Some tcpdump caps. I can try to access it a thousand times, I get always the same answers, with the final MISS from the proxy. 192.168.1.254 is the proxy, 192.168.1.33 is one client, 66.6.40.40.80 is the website. 17:32:34.885281 IP 192.168.1.33.38721 > 192.168.1.254.3128: Flags [P.], seq 416689318:416689905, ack 3648482704, win 64300, length 587 GET http://lustik.tumblr.com/ HTTP/1.1 Host: lustik.tumblr.com User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Firefox/24.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: bo-BO,pt;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Cookie: __qca=P0-513169740-1391703940250; _ga=GA1.2.1874150165.1391703941; __utma=189990958.1874150165.1391703941.1392235212.1392236957.9; Connection: keep-alive 17:32:35.115954 IP 192.168.1.254.39555 > 66.6.40.40.80: Flags [P.], seq 1:666, ack 1, win 29, options [nop,nop,TS val 2144186114 ecr 359895267], length 665 GET / HTTP/1.1 Host: lustik.tumblr.com User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Firefox/24.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: bo-BO,pt;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate Cookie: __qca=P0-513169740-1391703940250; _ga=GA1.2.1874150165.1391703941; __utma=189990958.1874150165.1391703941.1392235212.1392236957.9; Via: 1.1 proxy02.example.bo (squid) X-Forwarded-For: 192.168.1.33 Cache-Control: max-age=432000 Connection: keep-alive 17:32:36.098282 IP 66.6.40.40.80 > 192.168.1.254.39555: Flags [.], seq 1:1449, ack 666, win 31, options [nop,nop,TS val 359896254 ecr 2144186114], length 1448 HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 P3P: CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL" X-Tumblr-User: lustik X-Tumblr-Pixel-0: http://www.tumblr.com/impixu?T=1392237155&J=eyJ0eXBlIjoidXJsIi X-Tumblr-Pixel-1: NjQyIiwicm9vdF9wb3N0aWQiOiI3NDY0ODA2Njg2NiIsInBvc3RpZCI6Ijc2ND X-Tumblr-Pixel-2: 9zdGlkIjoiNzY0MTYxODQwODIiLCJibG9naWQiOiI2MDE1Nzc1Iiwic291cmNl X-Tumblr-Pixel-3: dXJjZSI6MzN9LHsicm9vdF9ibG9naWQiOiI1NzU0MTgiLCJyb290X3Bvc3RpZC X-Tumblr-Pixel: 4 Link: <http://31.media.tumblr.com/avatar_07ff40170912_128.png>; rel=icon X-UA-Compatible: IE=Edge,chrome=1 Content-Encoding: gzip X-UA-Device: desktop Vary: X-UA-Device Content-Length: 14257 Accept-Ranges: bytes Date: Wed, 12 Feb 2014 20:32:36 GMT Connection: close 17:32:36.098761 IP 192.168.1.254.3128 > 192.168.1.33.38721: Flags [.], seq 1:1461, ack 587, win 49640, length 1460 HTTP/1.1 200 OK Content-Type: text/html; charset=utf-8 P3P: CP="ALL ADM DEV PSAi COM OUR OTRo STP IND ONL" X-Tumblr-User: lustik X-Tumblr-Pixel-0: http://www.tumblr.com/impixu?T=1392237155&J=eyJ0eXBlIjoidXJsIiw X-Tumblr-Pixel-1: NjQyIiwicm9vdF9wb3N0aWQiOiI3NDY0ODA2Njg2NiIsInBvc3RpZCI6Ijc2NDM X-Tumblr-Pixel-2: 9zdGlkIjoiNzY0MTYxODQwODIiLCJibG9naWQiOiI2MDE1Nzc1Iiwic291cmNlI X-Tumblr-Pixel-3: dXJjZSI6MzN9LHsicm9vdF9ibG9naWQiOiI1NzU0MTgiLCJyb290X3Bvc3RpZCI X-Tumblr-Pixel: 4 Link: <http://31.media.tumblr.com/avatar_07ff40170912_128.png>; rel=icon X-UA-Compatible: IE=Edge,chrome=1 Content-Encoding: gzip X-UA-Device: desktop Vary: X-UA-Device Content-Length: 14257 Accept-Ranges: bytes Date: Wed, 12 Feb 2014 20:32:36 GMT X-Cache: MISS from proxy02.example.bo Via: 1.1 proxy02.example.bo (squid) Connection: keep-alive On Wed, Feb 12, 2014 at 5:47 PM, Carlos Defoe <carlosdefoe@xxxxxxxxx> wrote: > Hello, > > is there a way to be sure that some objects will be cached? > > I'm trying to cache this image blog: > http://lustik.tumblr.com > > I configured one refresh_pattern line to match all tumblr, with some > options that, as far as I undestood, will agressively try to cache it. > > #### > # REFRESH_PATTERNS > #### > refresh_pattern -i tumblr.com 2880 90% 7200 override-expire > override-lastmod ignore-no-store ignore-reload ignore-private > # Add any of your own refresh_pattern entries above these. > refresh_pattern ^ftp: 1440 20% 10080 > refresh_pattern ^gopher: 1440 0% 1440 > refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 > refresh_pattern . 0 20% 4320 > > No luck. All I get with this is always TCP_MISS/200, for all objects. E.g: > TCP_MISS/200 172504 GET > http://24.media.tumblr.com/967c977f757bc64f9e10184acc934bd2/tumblr_n0qsckwQA31qztdg6o4_500.jpg > > I tried to load that page on different browsers, and different > machines, but the objects are never cached. Why is that? What can I > do? > > If my disk cache is already full, the behavior should be to keep the > objects that are already stored, or delete the oldest and store those > new? I mean, this could be caused by a full cache dir? > > Thanks, > Carlos