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 Servername.MyWebsite.com
X-Cache-Lookup: MISS from Servername.MyWebsite.com:80
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

  • 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? Mar 21, 2011 at 12:04
  • nothing in apache access log !! Mar 21, 2011 at 13:02

2 Answers 2


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.

  • so, what shall i do to overcome this issue? Mar 21, 2011 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 .mydomain.com
cache deny no_cache_mydomain
  • the problem is in homepage only, other pages come correctly!! :(( Mar 21, 2011 at 13:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .