<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
-----BEGIN PGP SIGNED MESSAGE----- <br>
Hash: SHA256 <br>
<br>
And I did not promise a silver bullet :) This is just a small
workaround, which does not work in all cases. :)<br>
<br>
13.05.16 1:17, Heiler Bemerguy пишет:<br>
<span style="white-space: pre;">><br>
><br>
> I also don't care too much about duplicated cached files..
but trying to cache "ranged" requests is topping my link and in
the end it seems it's not caching anything lol<br>
><br>
> EVEN if I only allow range_offset to some urls or file
extensions....<br>
><br>
><br>
> Best Regards,<br>
><br>
><br>
> -- <br>
> Heiler Bemerguy - (91) 98151-4894<br>
> Assessor Técnico - CINBESA (91) 3184-1751<br>
><br>
> Em 12/05/2016 16:09, Yuri Voinov escreveu:<br>
> I suggest it is very bad idea to transform caching proxy to
linux<br>
> distro's or something else archive.<br>
><br>
> As Amos said, "Squid is a cache, not an archive".<br>
><br>
><br>
> 13.05.16 0:57, Hans-Peter Jansen пишет:<br>
> >>> Hi Heiler,<br>
> >>><br>
> >>> On Donnerstag, 12. Mai 2016 13:28:00 Heiler
Bemerguy wrote:<br>
> >>>> Hi Pete, thanks for replying... let me see
if I got it right..<br>
> >>>><br>
> >>>> Will I need to specify every url/domain I
want it to act on ? I want<br>
> >>>> squid to do it for every range-request
downloads that should/would be<br>
> >>>> cached (based on other rules,
pattern_refreshs etc)<br>
> >>> Yup, that's right. At least, that's the common
approach to deal with CDNs.<br>
> >>> I think, that disallowing range requests is too
drastic to work fine<br>
> on the<br>
> >>> long run, but let us know, if you get to
satisfactory solution this way.<br>
> >>><br>
> >>>> It doesn't need to delay any downloads as
long as it isn't a dupe of<br>
> >>>> what's already being downloaded.....<br>
> >>> You can set to delay to zero of course.<br>
> >>><br>
> >>> This is only one side of the issues with CDNs.
The other, more<br>
> problematic<br>
> >>> side of it is, that many server with different
URLs provide the same<br>
> files.<br>
> >>> Every new address will result in a new download
of otherwise identical<br>
> >>> content.<br>
> >>><br>
> >>> Here's an example of openSUSE:<br>
> >>><br>
> >>> #<br>
> >>> # this file was generated by gen_openSUSE_dedups<br>
> >>> # from <a class="moz-txt-link-freetext" href="http://mirrors.opensuse.org/list/all.html">http://mirrors.opensuse.org/list/all.html</a><br>
> >>> # with timestamp Thu, 12 May 2016 05:30:18 +0200<br>
> >>> #<br>
> >>> [openSUSE]<br>
> >>> match:<br>
> >>> # openSUSE Headquarter<br>
> >>> http\:\/\/[a-z0-9]+\.opensuse\.org\/(.*)<br>
> >>> # South Africa (za)<br>
> >>>
http\:\/\/ftp\.up\.ac\.za\/mirrors\/opensuse\/opensuse\/(.*)<br>
> >>> # Bangladesh (bd)<br>
> >>>
http\:\/\/mirror\.dhakacom\.com\/opensuse\/(.*)<br>
> >>>
http\:\/\/mirrors\.ispros\.com\.bd\/opensuse\/(.*)<br>
> >>> # China (cn)<br>
> >>>
http\:\/\/mirror\.bjtu\.edu\.cn\/opensuse\/(.*)<br>
> >>>
http\:\/\/fundawang\.lcuc\.org\.cn\/opensuse\/(.*)<br>
> >>>
http\:\/\/mirrors\.tuna\.tsinghua\.edu\.cn\/opensuse\/(.*)<br>
> >>>
http\:\/\/mirrors\.skyshe\.cn\/opensuse\/(.*)<br>
> >>>
http\:\/\/mirrors\.hust\.edu\.cn\/opensuse\/(.*)<br>
> >>>
http\:\/\/c\.mirrors\.lanunion\.org\/opensuse\/(.*)<br>
> >>>
http\:\/\/mirrors\.hustunique\.com\/opensuse\/(.*)<br>
> >>> http\:\/\/mirrors\.sohu\.com\/opensuse\/(.*)<br>
> >>>
http\:\/\/mirrors\.ustc\.edu\.cn\/opensuse\/(.*)<br>
> >>> # Hong Kong (hk)<br>
> >>>
http\:\/\/mirror\.rackspace\.hk\/openSUSE\/(.*)<br>
> >>> # Indonesia (id)<br>
> >>>
http\:\/\/mirror\.linux\.or\.id\/linux\/opensuse\/(.*)<br>
> >>>
http\:\/\/buaya\.klas\.or\.id\/opensuse\/(.*)<br>
> >>>
http\:\/\/kartolo\.sby\.datautama\.net\.id\/openSUSE\/(.*)<br>
> >>>
http\:\/\/opensuse\.idrepo\.or\.id\/opensuse\/(.*)<br>
> >>>
http\:\/\/mirror\.unej\.ac\.id\/opensuse\/(.*)<br>
> >>> http\:\/\/download\.opensuse\.or\.id\/(.*)<br>
> >>> http\:\/\/repo\.ugm\.ac\.id\/opensuse\/(.*)<br>
> >>>
http\:\/\/dl2\.foss\-id\.web\.id\/opensuse\/(.*)<br>
> >>> # Israel (il)<br>
> >>>
http\:\/\/mirror\.isoc\.org\.il\/pub\/opensuse\/(.*)<br>
> >>> <br>
> >>> [...] -> this list contains about 180
entries<br>
> >>><br>
> >>> replace:
<a class="moz-txt-link-freetext" href="http://download.opensuse.org.%(intdomain)s/\1">http://download.opensuse.org.%(intdomain)s/\1</a><br>
> >>> # fetch all redirected objects explicitly<br>
> >>> fetch: true<br>
> >>><br>
> >>><br>
> >>> This is, how CDNs work, but it's a nightmare for
caching proxies.<br>
> >>> In such scenarios squid_dedup comes to rescue.<br>
> >>><br>
> >>> Cheers,<br>
> >>> Pete<br>
> >>> _______________________________________________<br>
> >>> squid-users mailing list<br>
> >>> <a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
> >>>
<a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a><br>
>><br>
>><br>
>><br>
>> _______________________________________________<br>
>> squid-users mailing list<br>
>> <a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
>> <a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a><br>
><br>
><br>
><br>
> _______________________________________________<br>
> squid-users mailing list<br>
> <a class="moz-txt-link-abbreviated" href="mailto:squid-users@lists.squid-cache.org">squid-users@lists.squid-cache.org</a><br>
> <a class="moz-txt-link-freetext" href="http://lists.squid-cache.org/listinfo/squid-users">http://lists.squid-cache.org/listinfo/squid-users</a></span><br>
<br>
-----BEGIN PGP SIGNATURE-----
<br>
Version: GnuPG v2
<br>
<br>
iQEcBAEBCAAGBQJXNNcvAAoJENNXIZxhPexGLGsH/jilasMtRp499QJS+G5O9lHv
<br>
z1MtLbZnExrzVcmqb69jsbaZWjwnhvUF1Ng7fZbep5q6pky3DGcwxQu/EBVhD3+p
<br>
tTliArKa45dmhbOm5a0ljJcq73hBtUrlS0UrGDV6CMRrXjHjSUzy6+BwwsI1mClp
<br>
dtOos3NoSDlQmazkEDA6+f3iuYykjinmTsFlJRgQipluXnUUlmvbnpwZHqUhTA0R
<br>
X2I6j3zdTDHGszlXkoFrKg+Vj0gOzeGfA5IPx7/vnruShlYSPWuvoVfvi4ZLYV2y
<br>
8NZ8Q9L1MvBoMUa1WphE2NZeKpVPbK/d1inNCjOtpymxmNX/JYHTCs3aB8Gr8pU=
<br>
=9RTQ
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>