I wanted to test if the Clients attached to a Squid Server are actually using the Cache data instead of going directly to the internet and retrieving the data. I have configured all clients browsers to read the Server:Port from the Squid Server (Which is 10.42.0.1:3128). So how do I know if they are retrieving the information from the Cache or the Internet.
I asked since a quick "test" gave me the same speed when loading several pages that had many images on them. Same images and not ads that change on every visit.
What ways can I use to check if they are using the Cache?
I ran the following: sudo tail -f /var/log/squid3/access.log
and got several lines that kept on scrolling:
1374553166.136 929 185.168.101.131 TCP_MISS/200 28198 GET http://www.amazon.de/gp/offer-listing/B000NOIW62/ref=sr_1_1_olp? - DIRECT/178.236.7.219 text/html
They had a TCP_MISS/200 and at the end had a DIRECT as the example above. This happened while I had all computers in the LAN turned off. When I tried to used one I got the following doing a sudo tail -f /var/log/squid3/access.log | grep HIT
1374553387.488 0 10.42.0.14 TCP_IMS_HIT/304 278 GET http://g-ecx.images-amazon.com/images/G/01/da/creatives/sn130.png - NONE/- image/png
So it shows as TCP_IMS_HIT/304 and at the end it shows a NONE
So what does the TCP_MISS, DIRECT, TCP_IMS_HIT and NONE mean?
Is the cache working?