Re: [squid-users] how squid act on caching same file on dif url

From: <squid3@dont-contact.us>
Date: Mon, 18 Jun 2007 17:19:39 +1200 (NZST)

> On Sun, Jun 17, 2007, Andreas Pettersson wrote:
>> Alexandre Correa wrote:
>> >Hello squid-users !!!
>> >
>> >i have one question about caching same file on diferent url !! how
>> >squid act in this situation:
>> >
>> >
>> >www.xxx.xxx.com/file.exe
>> >www.yyy.yyy.com/file.exe
>> >
>> >same file...
>> >
>> >squid cache one file ?
>> >
>> No, if they are cachable they will be cached as two separate files.
>
> But if you'd like a fun project, figure out how to patch Squid to consider
> those equivalent for storage and retrieval; youtube caching would be
> possible
> with something like that.
>
> Adrian
>

Should be possible on (but tricky, and maybe slow) to use a hash/MD5 or
similar on the file binary instead of the URI. Good backup programs do it
so accel configs should be easy.
Problem (maybe the blocker) would be getting it out of the webserver, or
long-term linking and caching of such maps.

Amos
Received on Sun Jun 17 2007 - 23:19:50 MDT

This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:04 MDT