Re: [squid-users] 'file' won't cache

From: Mark Gibson <mark@dont-contact.us>
Date: Wed, 09 Aug 2006 10:56:47 -0600

Henrik Nordstrom wrote:
> On Tue, 2006-08-08 at 12:04 -0600, Mark Gibson wrote:
>
>> If I perform a request one after another, the request still isn't
>> cached. However, if I change 's-maxage' to 60 seconds, it does get
>> cached. The requests I'm making to see if caching takes place are
>> within seconds of each other.
>
> Squid by default regards objects which can not be refreshed (no cache
> validator, i.e. Last-Modified) and expiring withing 60 seconds as
> worthless to cache.
>
> You can tune this with the minimum_expiry_time directive.
>
> Alternatively have your program emit a meaningful Last-Modified header
> making Squid think that the object can be validated for freshness.
>
Thanks, that was very helpful. I'm able to cache this request now.

Mark
Received on Wed Aug 09 2006 - 10:59:55 MDT

This archive was generated by hypermail pre-2.1.9 : Fri Sep 01 2006 - 12:00:02 MDT