Hi, I tried setting a very permissive refresh_pattern - but squid still refuses to cache. Then I tried creating a small disk cache. In the real production environment we use memory cache only. cache_dir ufs /tmp/3/cache 4 1 1 And now the objects gets cached ! [root@sesxsp01wintc 3]# cat access.log 1332337330.903 1 127.0.0.1 TCP_MISS/200 341 GET http://127.0.0.1:9990/x - HIER_DIRECT/127.0.0.1 text/plain 1332337333.711 0 127.0.0.1 TCP_MEM_HIT/200 348 GET http://127.0.0.1:9990/x - HIER_NONE/- text/plain So earlier versions of squid support memory-cache only - 3.2 requires a disk-cache. -- erik On Wed, Mar 21, 2012 at 12:58 PM, Erik Svensson <erik.xv@xxxxxxxxxxxxxx> wrote: > Hi, > > I run the test again with debug_options set as Amos recommended. > Here is the cache.log : > > 2012/03/21 12:37:44 kid1| Starting Squid Cache version 3.2.0.16 for > i686-pc-linux-gnu... > 2012/03/21 12:38:34.644 kid1| HTTP Client local=127.0.0.1:9993 > remote=127.0.0.1:42828 FD 10 flags=1 > 2012/03/21 12:38:34.644 kid1| HTTP Client REQUEST: > --------- > GET http://127.0.0.1:9990/x HTTP/1.1 > User-Agent: curl/7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 > OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 > Host: 127.0.0.1:9990 > Accept: */* > > > ---------- > 2012/03/21 12:38:34.645 kid1| HTTP Server local=127.0.0.1:42829 > remote=127.0.0.1:9990 FD 11 flags=1 > 2012/03/21 12:38:34.645 kid1| HTTP Server REQUEST: > --------- > GET /x HTTP/1.1 > User-Agent: curl/7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 > OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 > Host: 127.0.0.1:9990 > Accept: */* > Via: 1.1 localhost.localdomain (squid/3.2.0.16) > X-Forwarded-For: 127.0.0.1 > Cache-Control: max-age=259200 > Connection: keep-alive > > > ---------- > 2012/03/21 12:38:34.645 kid1| ctx: enter level 0: 'http://127.0.0.1:9990/x' > 2012/03/21 12:38:34.645 kid1| HTTP Server local=127.0.0.1:42829 > remote=127.0.0.1:9990 FD 11 flags=1 > 2012/03/21 12:38:34.645 kid1| HTTP Server REPLY: > --------- > HTTP/1.1 200 OK > Server: thttpd/2.25b 29dec2003 > Content-Type: text/plain; charset=iso-8859-1 > Date: Wed, 21 Mar 2012 11:38:34 GMT > Last-Modified: Wed, 21 Mar 2012 11:36:44 GMT > Accept-Ranges: bytes > Connection: close > Content-Length: 5 > > HiHo > > ---------- > 2012/03/21 12:38:34.645 kid1| ctx: exit level 0 > 2012/03/21 12:38:34.645 kid1| HTTP Client local=127.0.0.1:9993 > remote=127.0.0.1:42828 FD 10 flags=1 > 2012/03/21 12:38:34.645 kid1| HTTP Client REPLY: > --------- > HTTP/1.1 200 OK > Server: thttpd/2.25b 29dec2003 > Content-Type: text/plain; charset=iso-8859-1 > Date: Wed, 21 Mar 2012 11:38:34 GMT > Last-Modified: Wed, 21 Mar 2012 11:36:44 GMT > Accept-Ranges: bytes > Content-Length: 5 > X-Cache: MISS from localhost.localdomain > Via: 1.1 localhost.localdomain (squid/3.2.0.16) > Connection: keep-alive > > > ---------- > 2012/03/21 12:38:52.621 kid1| HTTP Client local=127.0.0.1:9993 > remote=127.0.0.1:43206 FD 10 flags=1 > 2012/03/21 12:38:52.621 kid1| HTTP Client REQUEST: > --------- > GET http://127.0.0.1:9990/x HTTP/1.1 > User-Agent: curl/7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 > OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 > Host: 127.0.0.1:9990 > Accept: */* > > > ---------- > 2012/03/21 12:38:52.621 kid1| HTTP Server local=127.0.0.1:43207 > remote=127.0.0.1:9990 FD 11 flags=1 > 2012/03/21 12:38:52.621 kid1| HTTP Server REQUEST: > --------- > GET /x HTTP/1.1 > User-Agent: curl/7.12.1 (i386-redhat-linux-gnu) libcurl/7.12.1 > OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6 > Host: 127.0.0.1:9990 > Accept: */* > Via: 1.1 localhost.localdomain (squid/3.2.0.16) > X-Forwarded-For: 127.0.0.1 > Cache-Control: max-age=259200 > Connection: keep-alive > > > ---------- > 2012/03/21 12:38:52.621 kid1| ctx: enter level 0: 'http://127.0.0.1:9990/x' > 2012/03/21 12:38:52.622 kid1| HTTP Server local=127.0.0.1:43207 > remote=127.0.0.1:9990 FD 11 flags=1 > 2012/03/21 12:38:52.622 kid1| HTTP Server REPLY: > --------- > HTTP/1.1 200 OK > Server: thttpd/2.25b 29dec2003 > Content-Type: text/plain; charset=iso-8859-1 > Date: Wed, 21 Mar 2012 11:38:52 GMT > Last-Modified: Wed, 21 Mar 2012 11:36:44 GMT > Accept-Ranges: bytes > Connection: close > Content-Length: 5 > > HiHo > > ---------- > 2012/03/21 12:38:52.622 kid1| ctx: exit level 0 > 2012/03/21 12:38:52.622 kid1| HTTP Client local=127.0.0.1:9993 > remote=127.0.0.1:43206 FD 10 flags=1 > 2012/03/21 12:38:52.622 kid1| HTTP Client REPLY: > --------- > HTTP/1.1 200 OK > Server: thttpd/2.25b 29dec2003 > Content-Type: text/plain; charset=iso-8859-1 > Date: Wed, 21 Mar 2012 11:38:52 GMT > Last-Modified: Wed, 21 Mar 2012 11:36:44 GMT > Accept-Ranges: bytes > Content-Length: 5 > X-Cache: MISS from localhost.localdomain > Via: 1.1 localhost.localdomain (squid/3.2.0.16) > Connection: keep-alive > > > ---------- > > It doesn't say me very much, but I forward it to squid-users in any case. > > -- erik > > On Wed, Mar 14, 2012 at 10:47 PM, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote: >> >> cc'ing to squid-dev where the people who might know reside.... >> >> >> Also, adding "debug_options 11,2" may show something useful in the HTTP flow >> for 3.2. >> >> Amos >> >> >> On 15.03.2012 05:59, Erik Svensson wrote: >>> >>> Hi, >>> >>> Objects don't get cached in Squid 3.2. Same transactions and config >>> works in 3.1 >>> >>> I will show my problem with a simple webserver listening on 127.0.0.1:9990 >>> and sending transactions from curl to a squid listening on 127.0.0.1:9993 >>> >>> 3.1 logs first a MISS since the cache is empty and when repeating the >>> transaction a HIT. >>> 3.2 logs 2 MISSes >>> > [ Omitted some details - see original post for the rest ] >>> >>> >>> To repeat : Squid 3.1 logs expected MISS + HIT while 3.2 logs MISS + MISS. >>> Does anyone have any idea what I am missing here ? >>> >>> Regards, >>> Erik Svensson