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.

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
add comment

1 Answer 1

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
add comment

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.