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

Can Squid be configured to permanently cache specific directories of a web site? In the diagram below, the lan1 Squid should cache and directories permanently. Contents of directories /x /y and /z are write once.

                /w /x /y /z
         Slow Internet Connection
          lan1  |  lan2  |  lan3
                |        |
          cache |  cache |  cache
          /x /y |  /x /z |  /y /z
          Squid |  Squid |  Squid
         ------ | ------ | ------
         Browser| Browser|Browser
         Browser| Browser|Browser
         Browser| Browser|Browser
         Browser| Browser|Browser
share|improve this question
up vote 1 down vote accepted

A combination of cache and refresh_pattern will define how your SQUID cache performs. You can use cache to specify the directory and refresh_pattern to define how it expires.

You can use override-expire to enforce a minimum age, which violates the HTTP standard. I do not believe there is a setting for true permanence.

Cache Tuning Parameters

share|improve this answer
For future reference,… is related to this as well. – Warner Mar 3 '10 at 16:12

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.