Re: [squid-users] keep cached objects permanently

From: Kinkie <gkinkie_at_gmail.com>
Date: Fri, 18 Sep 2009 00:45:33 +0200

On Thu, Sep 17, 2009 at 10:26 PM, Matthew Morgan <atcs.matthew_at_gmail.com> wrote:
> Kinkie wrote:
>>
>> On Thu, Sep 17, 2009 at 7:11 PM, Matthew Morgan <atcs.matthew_at_gmail.com>
>> wrote:
>>
>>>
>>> Is there a way to configure squid so that objects from a certain domain
>>> are
>>> cached permanently?  I am trying to get a windows update caching server
>>> up,
>>> and I want to make sure the LRU manager doesn't delete any of the cached
>>> updates.  Other cached data can be deleted as needed.
>>>
>>
>> Check refresh_pattern, just make sure you know what you're doing :)
>>
>
> I see stuff in refresh_pattern that keeps squid from reloading it's copy,
> but does this stop the LRU cleanup routine from deleting it from the cache?
>  Currently I'm using the following lines (copied from an online tutorial).
>  Will they do the job?  It seems like some of the updates get cached, then
> deleted from the cache a few days later.
>
> refresh_pattern windowsupdate.com/.*\.(cab|exe|dll|msi) 10080 100% 43200
> reload-into-ims
> refresh_pattern download.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100%
> 43200 reload-into-ims
> refresh_pattern www.microsoft.com/.*\.(cab|exe|dll|msi) 10080 100% 43200
> reload-into-ims
> refresh_pattern au.download.windowsupdate.com/.*\.(cab|exe|dll|msi) 4320
> 100% 43200 reload-into-ims

There are a few more options you can add (override-expire,
override-must-revalidate, etc.). I don't know what's the right mix for
this specific scenario, but you can look into those.

-- 
    /kinkie
Received on Thu Sep 17 2009 - 22:45:41 MDT

This archive was generated by hypermail 2.2.0 : Fri Sep 18 2009 - 12:00:03 MDT