<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>
# Clean up Vary to increase caching<br>
reply_header_access Vary deny all<br>
reply_header_replace Vary Accept-Encoding<br>
<br>
Hmmm? ;)<br>
<br>
<br>
08.06.2016 22:02, Heiler Bemerguy пишет:<br>
<span style="white-space: pre;">><br>
><br>
> Hum.. Amos, that store_miss would just make the object with
that Vary header to not be cached, right?<br>
><br>
> I've just tested it. But I think we need to choose what types
of Vary are valid/usable or not.<br>
><br>
> Reading the source code since yesterday, I made a patch that
seems to fix my vary loop problem and will increase HITs a lot.<br>
><br>
> It will only accept "accept-encoding" as a Vary statement and
ignore all the other garbage servers are using as "Vary"...<br>
><br>
> A simple change on http.cc, not client_side.cc<br>
><br>
><br>
> Here it goes, use at your own risk:<br>
><br>
> *--- http.cc 2016-05-08 09:46:35.000000000 -0300**<br>
> **+++ http.cc.new 2016-06-08 12:25:16.000000000 -0300**<br>
> **@@ -595,6 +595,11 @@**<br>
> ** xstrncpy(name, item, ilen + 1);**<br>
> ** Tolower(name);**<br>
> ** **<br>
> **+ if (strcmp(name, "accept-encoding") != 0) {**<br>
> **+ safe_free(name);**<br>
> **+ continue;**<br>
> **+ }**<br>
> **+**<br>
> ** if (strcmp(name, "*") == 0) {**<br>
> ** /* Can not handle "Vary: *" withtout ETag
support */**<br>
> ** safe_free(name);*<br>
><br>
><br>
> Save this text as http.patch on "src" directory and then:
patch < http.patch<br>
><br>
><br>
> -- <br>
> Best Regards,<br>
><br>
> Heiler Bemerguy<br>
> Network Manager - CINBESA<br>
> 55 91 98151-4894/3184-1751<br>
><br>
><br>
> Em 08/06/2016 10:34, Heiler Bemerguy escreveu:<br>
>><br>
>> So.. with store_miss I could make squid store only some
types of vary?<br>
>> Wouldn't it "fix" the vary loop "bug" without messing
with sources?<br>
>><br>
>><br>
>> -- <br>
>> Best Regards,<br>
>><br>
>> Heiler Bemerguy<br>
>> Network Manager - CINBESA<br>
>> 55 91 98151-4894/3184-1751<br>
>><br>
>><br>
>> Em 08/06/2016 03:31, Amos Jeffries escreveu:<br>
>>><br>
>>>> entry->mem_obj->vary_headers =<br>
>>>>
'accept="text%2Fhtml,application%2Fxhtml+xml,application%2Fxml%3Bq%3D0.9,*%2F*%3Bq%3D0.8",<br>
>>>> if-none-match, if-modified-since,<br>
>>>>
accept-language="en-US,en%3Bq%3D0.8,pt-BR%3Bq%3D0.5,pt%3Bq%3D0.3",<br>
>>>> accept-encoding="none", x-client-locale,<br>
>>>>
user-agent="Mozilla%2F5.0%20(Windows%20NT%2010.0%3B%20WOW64%3B%20rv%3A46.0)%20Gecko%2F20100101%20Firefox%2F46.0",<br>
>>>> x-device'<br>
>>>><br>
>>>> That's why it always gives vary object loop<br>
>>>><br>
>>> :-( Stupidity at its best with that sites designer.<br>
>>><br>
>>><br>
>>> Heres a little recipe that should raise the HIT ratio
for that kind of<br>
>>> crap in 3.5:<br>
>>><br>
>>> acl brokenVaryHeaders rep_header Vary -i \<br>
>>> user-agent \<br>
>>> if(-none)?-match \<br>
>>> if-(un)?modified-since<br>
>>><br>
>>> store_miss deny brokenVaryHeaders<br>
>>><br>
>>><br>
>>> Amos<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>
iQEcBAEBCAAGBQJXWEHiAAoJENNXIZxhPexGsJkIAIwYPMIx8YBZjgusZvddQ6G+
<br>
NaGwcbVTrA+my2cgX6FpJLl5jHUF0Z/K8wiQbKAz73zmQSr0gkjSegKqCgqBf+mS
<br>
UrvdS/4Hg1dCSkdQVOkHeb6cRKOVI2VLiOOtMWDJdTeXjv/ELsn7PfIeOMujgGBm
<br>
3069k4mm+DwmQ4V/ozSOejBa7PB83UU80Ab6e5dnhiEpjnsN3MaZhMyCxyR8YMdK
<br>
4ikrmOaGkKLjoQEwcMGyVbkzKIOwe3eg5HCL/qr5v0Ickxn/adyHweL0KE8UjQXl
<br>
ghTKj2OpM4SWT9Tc8W0kZM8bpwzS5qgA/5rqJbDSbtjDFH03mH0R3eRjWtTVsik=
<br>
=5lo3
<br>
-----END PGP SIGNATURE-----
<br>
<br>
</body>
</html>