Search squid archive

Re: 'file' won't cache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux