[squid-users] RE: Squid Cache NEVER HIT's Only get TCP_MISS/200 and TCP_MISS/304

From: Robin Gwynne <Robin.Gwynne_at_wrbm.com>
Date: Fri, 7 Mar 2014 10:53:10 +0000

My copy and paste was not correct in the original post. I have corrected my conf file below.

Robin

-----Original Message-----
From: Robin Gwynne [mailto:Robin.Gwynne_at_wrbm.com]
Sent: 07 March 2014 10:46
To: squid-users_at_squid-cache.org
Subject: [squid-users] Squid Cache NEVER HIT's Only get TCP_MISS/200 and TCP_MISS/304

I am struggling with my Squid Reverse proxy cache.  I have been all round the forums with no success in getting my Squid Proxy Cache to actually do any caching.  I am running Squid 3.1 on Debian 6

Can anyone suggest what might be wrong with my Squid.conf file?  I have verified that the correct permissions exist on the cache folder, cache folders are initialized, no errors are returned from running "squid3 -k parse"

Regards,

Robin

--------------Squid.conf----------------------
http_port 80 accel ignore-cc defaultsite=richmedia.mydomain.com
cache_mem 500 MB
maximum_object_size_in_memory 50000 KB
cache_dir ufs /var/spool/squid3 10000 32 512 max-size=10485760
minimum_object_size 2 KB maximum_object_size 5000 MB
refresh_pattern -i \.(gif|png|jpg|jpeg|ico|bmp|xml)$ 260000 90% 260009
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv|mpg|wma|ogg|wmv|asx|asf)$ 260000 90% 260009
refresh_pattern . 260000 90% 260009
acl xdomain urlpath_regex ^/crossdomain.xml
cache_peer 94.125.16.13 parent 80 0 no-query no-digest originserver name=server1
cache_peer_access server1 deny xdomain
cache_peer 162.13.17.12 parent 8080 0 no-query no-digest originserver name=server2
cache_peer_access server2 allow xdomain
cache_peer_access server2 deny all
cache allow all
http_access allow all
------------------Access.log output----------------------
1394187754.972    108 195.157.14.29 TCP_MISS/200 118376 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187754.992     30 62.232.36.16 TCP_MISS/200 1004 GET http://richmedia.mydomain.com/favicon.ico - FIRST_UP_PARENT/server1 image/x-icon
1394187755.163     94 62.232.36.16 TCP_MISS/200 68954 GET http://richmedia.mydomain.com/media/webinar/supplier/I-Holland-2013Webinar/slides/Slide00029.swf - FIRST_UP_PARENT/server1 application/x-shockwave-flash
1394187765.378   9794 195.157.14.29 TCP_MISS/200 1696587 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187768.885    136 195.157.14.29 TCP_MISS/200 169077 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187782.779     38 62.232.3.16 TCP_MISS/200 1611 GET http://richmedia.mydomain.com/media/webinar/supplier/I-Holland-2013Webinar/slides/Slide624911.htm - FIRST_UP_PARENT/server1 text/html
1394187783.461     35 79.171.8.14 TCP_MISS/200 8811 GET http://richmedia.mydomain.com/media/webinar/supplier/Kampffmeyer-14Nov13/index.htm - FIRST_UP_PARENT/server1 text/html
1394187788.851  19370 195.157.14.29 TCP_MISS/200 3110156 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187792.101  66784 195.157.14.29 TCP_MISS/206 3961057 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187793.415    100 195.157.14.29 TCP_MISS/200 154126 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187807.537  13461 195.157.14.29 TCP_MISS/200 2109420 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187819.670      3 95.131.10.18 TCP_MISS/200 607 GET http://richmedia.mydomain.com/crossdomain.xml - FIRST_UP_PARENT/server2 application/xml
1394187838.664    144 195.157.14.29 TCP_MISS/200 115568 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
1394187855.303  35596 95.131.10.18 TCP_MISS/200 75550871 GET http://richmedia.mydomain.com/content/download/424921/8844388/file/Apprenticeships.mp4 - FIRST_UP_PARENT/server1 video/mp4
1394187867.488  28168 195.157.14.29 TCP_MISS/200 3961100 GET http://richmedia.mydomain.com/content/download/383683/8226052/file/Tim%20Storer.mp3 - FIRST_UP_PARENT/server1 audio/mpeg
Received on Fri Mar 07 2014 - 10:53:18 MST

This archive was generated by hypermail 2.2.0 : Sat Mar 08 2014 - 12:00:05 MST