Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

why am I always getting TCP_MISS:DIRECT? Why isn't Squid caching?

66.55.138.70 - - [20/Oct/2010:14:42:58 +0000] "GET
http://alexus.org/egg.gif HTTP/1.1" 200 12001 "http://alexus.org/"
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US)
AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4"
TCP_MISS:DIRECT
share|improve this question
1  
Did you double check in squid's caching directories that there aren't items in there? Anything in Squid's logs? What does your config file look like? –  Bart Silverstrim Oct 20 '10 at 15:32
    
there are bunch of directories/files in there. config is pretty much is out of the box –  alexus Oct 20 '10 at 20:43

1 Answer 1

When I hit that URL I get a non-cacheable response:

Content-Length: 1601
Date: Wed, 20 Oct 2010 16:30:49 GMT
Content-Type: text/html; charset=UTF-8
Etag: "1e52b84-641-42d9d29c90d40"
Server: Apache
Last-Modified: Sun, 08 Apr 2007 17:22:21 GMT
Accept-Ranges: bytes

200 OK
share|improve this answer
    
why this url isn't cacheable? I'm using that URL as an example. according to my logs, it looks like nothing is cacheable –  alexus Oct 20 '10 at 20:41
    
Have a read of mnot.net/cache_docs –  symcbean Oct 21 '10 at 9:02

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.