Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have drupal based website and i am using squid as a caching level.
now, the homepage keeps getting un-updated content (old contents) and by running curl -I on my website i got this:

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 11:52:15 GMT
Server: Apache
Last-Modified: Thu, 17 Mar 2011 17:44:47 GMT
Accept-Ranges: bytes
Content-Length: 77428
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Content-Type: text/html; charset=utf-8
X-Cache: MISS from
X-Cache-Lookup: MISS from
X-Cache: MISS from Admin
Connection: close

although it shows X-Cache:MISS in curl but it keeps giving old content.
now the question is: how can i configure squid to NOT cache my homepage or specific pages??
Thanks for your help

share|improve this question
Don't those headers show that Squid is NOT serving cached content. I believe Squid inserts the x-Cache HTTP headers. The others, for example Last-Modified are coming from Apache. I would look elsewhere for the problem - What does your Apache logs say for this request? – RedGrittyBrick Mar 21 '11 at 12:04
nothing in apache access log !! – Alaa Alomari Mar 21 '11 at 13:02
up vote 0 down vote accepted

By default squid will not cache non-cacheable content - which this obviously is. If you're getting a cache miss but seeing old content, then you've got more caching happenning deeper in your stack.

share|improve this answer
so, what shall i do to overcome this issue? – Alaa Alomari Mar 21 '11 at 14:17

I'm not sure if you can block a certain file, but you could block a domain.

acl no_cache_mydomain dstdomain
cache deny no_cache_mydomain
share|improve this answer
the problem is in homepage only, other pages come correctly!! :(( – Alaa Alomari Mar 21 '11 at 13:03

Your Answer


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.