LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Squid Caching Problem (https://www.linuxquestions.org/questions/linux-server-73/squid-caching-problem-807544/)

nazihhaddad 05-13-2010 03:39 AM

Squid Caching Problem
 
Hello, please I need help in squid concerning caching,my problem is:

when requesting websites I’m always getting them from the internet not from cache server.

757 192.168.1.105 TCP_MISS/200 676 GET http://www.google-analytics.com/__utm.gif? - DIRECT/74.125.113.101

any help would be greatly appreciated.

thank you

acid_kewpie 05-13-2010 04:32 AM

not a networking question. Moved to Linux - Server.

bathory 05-14-2010 05:12 AM

Quote:

The TCP_ codes refer to requests on the HTTP port (usually 3128). The UDP_ codes refer to requests on the ICP port (usually 3130). If ICP logging was disabled using the log_icp_queries option, no ICP replies will be logged.

The following result codes were taken from a Squid-2, compare with the log_type enum in src/enums.h:

TCP_HIT A valid copy of the requested object was in the cache.

TCP_MISS The requested object was not in the cache.

TCP_REFRESH_HIT The requested object was cached but STALE. The IMS query for the object resulted in "304 not modified".

TCP_REFRESH_FAIL_HIT The requested object was cached but STALE. The IMS query failed and the stale object was delivered.

TCP_REFRESH_MISS The requested object was cached but STALE. The IMS query returned the new content.
More details here

nazihhaddad 05-14-2010 07:30 AM

bathory, thanks for your info.
but can you please advise me about smthg.
i'm starting to get TCP_HIT in my access.log file, but when i'm trying to unplug the internet cable and try to retrieve websites from squid it fails unless i plug the internet cable again.

TB0ne 05-14-2010 10:49 AM

Quote:

Originally Posted by nazihhaddad (Post 3968297)
bathory, thanks for your info.
but can you please advise me about smthg.
i'm starting to get TCP_HIT in my access.log file, but when i'm trying to unplug the internet cable and try to retrieve websites from squid it fails unless i plug the internet cable again.

Same question from another thread. Duplicate

rajsunitha12 09-10-2010 08:50 AM

Facing same issue
 
can anyone please help


All times are GMT -5. The time now is 10:42 PM.