Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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

Is there any way to write squid ACLs about how long you cache a HTTP reply based on the HTTP Reply Code you receive. I specifically want to exclude 404, 403, 500, and 503 error codes from being cached, so I can confirm they have been resolved when working on a site.

share|improve this question
up vote 1 down vote accepted

Check negative_ttl directive in your squid.conf.

share|improve this answer
thanks much, that is exactly what I was looking for. – n8whnp Jun 16 '11 at 2:33

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.