Search squid archive

Re: Getting the full file content on a range request, but not on EVERY get ...

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
I suggest it is very bad idea to transform caching proxy to linux
distro's or something else archive.

As Amos said, "Squid is a cache, not an archive".


13.05.16 0:57, Hans-Peter Jansen пишет:
> Hi Heiler,
>
> On Donnerstag, 12. Mai 2016 13:28:00 Heiler Bemerguy wrote:
>> Hi Pete, thanks for replying... let me see if I got it right..
>>
>> Will I need to specify every url/domain I want it to act on ? I want
>> squid to do it for every range-request downloads that should/would be
>> cached (based on other rules, pattern_refreshs etc)
>
> Yup, that's right. At least, that's the common approach to deal with CDNs.
> I think, that disallowing range requests is too drastic to work fine
on the
> long run, but let us know, if you get to satisfactory solution this way.
>
>> It doesn't need to delay any downloads as long as it isn't a dupe of
>> what's already being downloaded.....
>
> You can set to delay to zero of course.
>
> This is only one side of the issues with CDNs. The other, more
problematic
> side of it is, that many server with different URLs provide the same
files.
> Every new address will result in a new download of otherwise identical
> content.
> 
> Here's an example of openSUSE:
>
> #
> # this file was generated by gen_openSUSE_dedups
> # from http://mirrors.opensuse.org/list/all.html
> # with timestamp Thu, 12 May 2016 05:30:18 +0200
> #
> [openSUSE]
> match:
>     # openSUSE Headquarter
>     http\:\/\/[a-z0-9]+\.opensuse\.org\/(.*)
>     # South Africa (za)
>     http\:\/\/ftp\.up\.ac\.za\/mirrors\/opensuse\/opensuse\/(.*)
>     # Bangladesh (bd)
>     http\:\/\/mirror\.dhakacom\.com\/opensuse\/(.*)
>     http\:\/\/mirrors\.ispros\.com\.bd\/opensuse\/(.*)
>     # China (cn)
>     http\:\/\/mirror\.bjtu\.edu\.cn\/opensuse\/(.*)
>     http\:\/\/fundawang\.lcuc\.org\.cn\/opensuse\/(.*)
>     http\:\/\/mirrors\.tuna\.tsinghua\.edu\.cn\/opensuse\/(.*)
>     http\:\/\/mirrors\.skyshe\.cn\/opensuse\/(.*)
>     http\:\/\/mirrors\.hust\.edu\.cn\/opensuse\/(.*)
>     http\:\/\/c\.mirrors\.lanunion\.org\/opensuse\/(.*)
>     http\:\/\/mirrors\.hustunique\.com\/opensuse\/(.*)
>     http\:\/\/mirrors\.sohu\.com\/opensuse\/(.*)
>     http\:\/\/mirrors\.ustc\.edu\.cn\/opensuse\/(.*)
>     # Hong Kong (hk)
>     http\:\/\/mirror\.rackspace\.hk\/openSUSE\/(.*)
>     # Indonesia (id)
>     http\:\/\/mirror\.linux\.or\.id\/linux\/opensuse\/(.*)
>     http\:\/\/buaya\.klas\.or\.id\/opensuse\/(.*)
>     http\:\/\/kartolo\.sby\.datautama\.net\.id\/openSUSE\/(.*)
>     http\:\/\/opensuse\.idrepo\.or\.id\/opensuse\/(.*)
>     http\:\/\/mirror\.unej\.ac\.id\/opensuse\/(.*)
>     http\:\/\/download\.opensuse\.or\.id\/(.*)
>     http\:\/\/repo\.ugm\.ac\.id\/opensuse\/(.*)
>     http\:\/\/dl2\.foss\-id\.web\.id\/opensuse\/(.*)
>     # Israel (il)
>     http\:\/\/mirror\.isoc\.org\.il\/pub\/opensuse\/(.*)
>    
>     [...] -> this list contains about 180 entries
>
> replace: http://download.opensuse.org.%(intdomain)s/\1
> # fetch all redirected objects explicitly
> fetch: true
>
>
> This is, how CDNs work, but it's a nightmare for caching proxies.
> In such scenarios squid_dedup comes to rescue.
>
> Cheers,
> Pete
> _______________________________________________
> squid-users mailing list
> squid-users@xxxxxxxxxxxxxxxxxxxxx
> http://lists.squid-cache.org/listinfo/squid-users

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXNNTzAAoJENNXIZxhPexG8XIIAKal+I1GMvTS9QDdJT6pxi7n
IL/d33/YUelZJ9ok1bLAiI1DNOJR6xwK6OZ+LefPOrxH1Q14quGJ5m873065jE+H
/1qhYs8rVVQ8qlLQyMI+aacEA9FV7j6OpWMteM+54SSjLlW4z0pJkw+vSsMwCnI5
Sy3qryieIImtmYnT1wbVM5Pop3lrLA/t1jza619ioxIxWa4M4bSO2EAR+Qj5HiUg
BT8ki8t1GIO12RatjqDwSouU+yDMK85amUKZBjRFXhyOxi1Cg+5uleI4C2lUjqM2
f1n3KBC7mlF6snAT74kc+JWLsNd2ohlkmJB8tSIhkxvkgmaWDpCpwaGaUmtkuXg=
=/fDD
-----END PGP SIGNATURE-----

Attachment: 0x613DEC46.asc
Description: application/pgp-keys

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

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

  Powered by Linux