I also want a good solution for this problem. Well, I got a reply
previously about this is as:
Q) Is there a way, I can cache the larger objects (>8MB) of my choice to
cache by the squid.
Ans) Not really. It's a global limit applying to all objects.
You might be able to play some games with no_cache to block caching of
responses with a content-length header larger than your preferred limit
below the global limit, but it's not entirely reliable as not all
downloads have a content-length specified.
(Replied from Henrik)
Ben, if you come with some better solution, I will be pleased to know
how you gonna do it.
thanks,
Rajendra Adhikari
Ben Hathaway wrote:
Dear Group,
I have a basic 4MB limit on cache file size. This is about right for
my needs. However, there is a group of about 5 URLs that keep cropping up
that are downloads of larger files - normally software updates, virus
definitions, that sort of thing. I want to cache them regardless of their
size, but I don't want to cache anything else that it more than 4Mb.
Can I set exceptions to the Maximum File Size rules for specific URLs?
Actually, specific domain paths...?
My only other thought was a kind of transparent redirection (perhaps in the
iptables) to some other local server and then download these files in a cron
job. However, this is a little bit like re-inventing the wheel just because
you want a blue one. (shameless "Hitchhikers guide to the Galaxy" reference)
Any suggestions?
My thanks in advance,
Ben Hathaway
Software Developer
http://www.spidersat.net
--
--------------------- [ SECURITY NOTICE ] ---------------------
To: ben.hathaway@xxxxxxxxxxxxx, squid-users@xxxxxxxxxxxxxxxx
For your security, rajendra@xxxxxxxxxxxxx
digitally signed this message on 04 July 2006 at 11:53:56 UTC.
Verify this digital signature at http://www.ciphire.com/verify.
---------------- [ CIPHIRE DIGITAL SIGNATURE ] ----------------
Q2lwaGlyZSBTaWcuAjhiZW4uaGF0aGF3YXlAc3BpZGVyc2F0Lm5ldCwgc3F1aWQt
dXNlcnNAc3F1aWQtY2FjaGUub3JnAHJhamVuZHJhQHN1YmlzdS5uZXQubnAAZW1h
aWwgYm9keQASBQAAfAB8AAAAAQAAANRWqkQSBQAArAIAAgACAAIAIHuNcEeC/m13
FnU4SmptxRB8JhP6p9aWE7KRH7o1bpPtAQB3Ft+G0rxfEaAdeWpiI799/VfmWhqx
L9phvdr/nb2PESqkbBKVJ4AzdsQ/+46qefY+GrjIxGeHGPy/7it0Ae5NU2lnRW5k
------------------ [ END DIGITAL SIGNATURE ] ------------------