[squid-users] Caching http google deb files
Yuri Voinov
yvoinov at gmail.com
Fri Oct 21 19:45:03 UTC 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
But I think it will be quite sufficient to bring back one of the options
HTTP violations, namely - "Ignore cache-control".
That's all. The rest we do ourselves.
22.10.2016 1:28, Yuri Voinov пишет:
>
> This is inappropriate. Just all we are need that to make the option
"F*ck the RFC and f*ck anyone who opposes caching" in the SQUID.
>
>
> 22.10.2016 1:07, Eliezer Croitoru пишет:
> > Instead of modifying the code,
> would you consider to use an ICAP service
>
> > that will mangle this?
>
> > I am unsure about the risks about doing so but why patch the
> sources if you
>
> > can resolve it with the current mainstream capabilities and
> API?
>
>
>
> > Eliezer
>
>
>
> > ----
>
> > Eliezer Croitoru <http://ngtech.co.il/lmgtfy/>
>
> > Linux System Administrator
>
> > Mobile: +972-5-28704261
>
> > Email: eliezer at ngtech.co.il
>
>
>
>
>
> > From: squid-users
> [mailto:squid-users-bounces at lists.squid-cache.org] On
>
> > Behalf Of Heiler Bemerguy
>
> > Sent: Friday, October 21, 2016 18:21
>
> > To: squid-users at squid-cache.org
>
> > Subject: Re: [squid-users] Caching http google deb files
>
>
>
>
>
> > Hello,
>
> > I've limited the "vary" usage and gained some hits by making
> these
>
> > modifications (in blue) to the http.cc code:
>
> > while (strListGetItem(&vary, ',', &item,
> &ilen, &pos)) {
>
> > SBuf name(item, ilen);
>
> > if (name == asterisk) {
>
> > /* vstr.clear();
>
> > break; */
>
> > continue;
>
> > }
>
> > name.toLower();
>
>
>
> > if (name.cmp("accept", 6) != 0 &&
>
> > name.cmp("user-agent", 10) != 0)
>
> > continue;
>
>
>
> > if (!vstr.isEmpty())
>
> > vstr.append(", ", 2);
>
>
>
>
>
>
>
>
>
>
>
> > _______________________________________________
>
> > squid-users mailing list
>
> > squid-users at lists.squid-cache.org
>
> > http://lists.squid-cache.org/listinfo/squid-users
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQEcBAEBCAAGBQJYCnA/AAoJENNXIZxhPexGguEIAMKABEEHBNSO1+9ySQJJuEF1
spOET1zeDEEWvkVPAAfiFZK/13hG3xDoAA1hX8gtyChFTgDszBJvlvNAI/4UKKKY
uHZLm2HFxng1xTlyx0SD0CR00sXgk8mLQFl+JDeaZs8y7tQV+MNlZ+vJa9ox+xOO
ZbCudWthgC6Jl4scYI82fmfPEk3GdTaMyqfzF23iNglQ+CxHWnhoKspsau6b244j
yqSCjEsR7czZn7HEEeUkX0/7pYruz0+m8qleFgz1HW/Zcs5/i5M/szrow9BhUKqo
GF9IViquTfJJSthYC0XF5oC3NTOY0rsRaQDoCA0KNgcG7fn8ddt74bIcA4j7mLk=
=p36C
-----END PGP SIGNATURE-----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20161022/516158a4/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x613DEC46.asc
Type: application/pgp-keys
Size: 2437 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20161022/516158a4/attachment.key>
More information about the squid-users
mailing list