Thanks for henrik's advice, I am running a file server that often
requested by multi-thread download tools, if squid can prefetch and
cache files, It will make my back-end server do less work.
I find some email lists talking about this matter here:
http://www1.uk.squid-cache.org/mail-archive/squid-users/200404/0962.html
it's replied by henrik too, but I am still not understand How squid
think about "abort" ? squid treat all the Range request as "abort" ?
What about the browser window is closed by some one while requesting
a file?
2008/6/28 Henrik Nordstrom <henrik_at_henriknordstrom.net>:
> On fre, 2008-06-27 at 18:44 +0800, WestWind wrote:
>> I notice when I set quick_abort_pct to -1 KB, the file is cached , BUT
>> the range_offset_limit not work, when request range >
>> range_offset_limit, the file sill prefetched and cached.
>
> Is it? The two does not have much to do with each other... in fact
> nothing except for them fighting a bit over the same object.. (see
> below).
>
>
> Yes, there is a misfeature in that Squid aborts the download after
> sending the last piece requested by the client if quick_abort is enabled
> (the default). So for prefetching of ranges one must both enable a
> suitable range_offset_limit and disable quick_abort..
>
> I would not recommend enabling range_offset_limit in a normal Internet
> proxy as it can easily suck up all your available bandwidth. But
> running with a configuration like the above makes a lot of sense in
> reverse proxy setups however..
>
> Regards
> Henrik
>
>
>
Received on Sat Jun 28 2008 - 17:24:53 MDT
This archive was generated by hypermail 2.2.0 : Sun Jun 29 2008 - 12:00:06 MDT