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.

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

              xww.example.com
                /w /x /y /z
                  Apache
         ------------------------
         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
add comment

1 Answer

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, serverfault.com/questions/118541/… is related to this as well. –  Warner Mar 3 '10 at 16:12
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.