LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-13-2010, 03:39 AM   #1
nazihhaddad
LQ Newbie
 
Registered: May 2010
Posts: 15

Rep: Reputation: 0
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
 
Old 05-13-2010, 04:32 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
not a networking question. Moved to Linux - Server.
 
Old 05-14-2010, 05:12 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,159
Blog Entries: 1

Rep: Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021Reputation: 2021
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
 
Old 05-14-2010, 07:30 AM   #4
nazihhaddad
LQ Newbie
 
Registered: May 2010
Posts: 15

Original Poster
Rep: Reputation: 0
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.
 
Old 05-14-2010, 10:49 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,556

Rep: Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948Reputation: 7948
Quote:
Originally Posted by nazihhaddad View Post
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
 
Old 09-10-2010, 08:50 AM   #6
rajsunitha12
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Facing same issue

can anyone please help
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid Caching Problem nazihhaddad Linux - Newbie 2 05-13-2010 09:07 AM
proxy caching(squid) nics Linux - Software 8 05-23-2007 10:25 AM
caching with squid kernelvn Linux - Networking 2 07-17-2005 11:54 PM
Squid caching _everything_ ivanatora Linux - Software 0 07-28-2004 01:40 AM
how to do caching on squid? gigi Linux - Software 2 02-23-2004 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration