Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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 http://www.squid-cache.org/Doc/config/refresh_pattern/ can help you.

share|improve this answer

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.