Re: [squid-users] Not Pass to Cache Peer if file size > a certain size

From: Brian <hiryuu@dont-contact.us>
Date: Thu, 15 Aug 2002 13:20:58 -0400

On Thursday 15 August 2002 04:07 am, Henrik Nordstrom wrote:
> On Thursday 15 August 2002 04.33, Anthony Giggins wrote:
> > Not Pass to Cache Peer if file size > a certain size
> >
> > Not Completely sure if this is possible. Please if someone can
> > point me in the right direction.
>
> The problem is that the reply size is only known when receiving the
> reply, and you can only receive a reply after sending the request..

It would be possible to do a HEAD request before the GET, but that's some
serious overhead, even if you could hack it into squid.

Your best bet is probably to send certain extensions (zip, exe, rar, ...)
to the peer. You will hit a few small ones, and miss a few big ones, but
overall it should work okay.

        -- Brian
Received on Thu Aug 15 2002 - 11:20:59 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:09:38 MST