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

I am administrating a network for a group of programmers developing a web spider.

We want to setup a squid cache so to be nicer to all those servers in the web. (And also so that our tests run faster).

The configuration we need is very easy: Cache everything for 30 minutes, no matter what (ignore last modified, e-tag, etc).

How do we do that?

share|improve this question

Squid cache cache removal policy are based on disk space usage, not object "age": objects are removed from the cache when space is needed to cache new objects. In other words you should properly set the size with the cache_dir directive to achieve your "30 minutes cache".

The refresh_pattern directive has options that can override or ignore some headers.

I think that a combination of options described here can help you.

share|improve this answer

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.