Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F13FD1063A for ; Wed, 6 Nov 2013 13:53:55 +0000 (UTC) Received: (qmail 76178 invoked by uid 500); 6 Nov 2013 13:53:23 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 76054 invoked by uid 500); 6 Nov 2013 13:53:13 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 76030 invoked by uid 99); 6 Nov 2013 13:53:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 13:53:08 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of h.reindl@thelounge.net designates 91.118.73.15 as permitted sender) Received: from [91.118.73.15] (HELO mail.thelounge.net) (91.118.73.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 13:53:04 +0000 Received: from rh.thelounge.net (rh.thelounge.net [10.0.0.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3dF8MH19rTz2q for ; Wed, 6 Nov 2013 14:52:43 +0100 (CET) Message-ID: <527A49AA.9070403@thelounge.net> Date: Wed, 06 Nov 2013 14:52:42 +0100 From: Reindl Harald Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: users@trafficserver.apache.org Subject: Re: Rare HIT References: <1383638507169-11.post@n7.nabble.com> <58E3090C-3AA8-484F-83DD-8799A6790F17@apache.org> In-Reply-To: <58E3090C-3AA8-484F-83DD-8799A6790F17@apache.org> X-Enigmail-Version: 1.6 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1jQmHjgFPCBKTFcrOeAk8EAkg9aXkjeKK" X-Virus-Checked: Checked by ClamAV on apache.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --1jQmHjgFPCBKTFcrOeAk8EAkg9aXkjeKK Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Am 05.11.2013 16:34, schrieb Leif Hedstrom: > On Nov 5, 2013, at 12:01 AM, Omid Kosari wrote: >=20 >> I am trying to test ATS performance . In a normal test i checked sever= al urls >> with three browsers and looking in /var/log/trafficserver/squid.log . >> for example i loaded following url one time with firefox , another tim= e with >> google chrome and another time with IE . >> http://upload.wikimedia.org/wikipedia/commons/2/28/Clouds_Blue_Sky_001= =2Ejpg >=20 > A guess would be that you get hit by this: >=20 > https://issues.apache.org/jira/browse/TS-2245 >=20 > I just landed this on master, so give it a test. You would need to set = the configs to =932=94 for it to be safe. What I suspect happens in your = case is that the various browsers are differing on what they send for Acc= ept-Language: or one of the other Accept-* headers. >=20 > I=92m thinking for v5.0.0, we want to make at least these three configu= rations the default: >=20 > CONFIG proxy.config.http.cache.ignore_accept_language_mismatch INT 2 > CONFIG proxy.config.http.cache.ignore_accept_encoding_mismatch INT 2 > proxy.config.http.cache.ignore_accept_charset_mismatch INT 2 >=20 > There are use cases for both the =930=94 setting and the =931=94 settin= g, but the most sane behavior IMO is the above.=20 > But we can=92t make this change in the v4.x release cycle, since it=92s= technically an incompatible configuration change=20 > (it does change the behavior) i am not sure now if 2 is still supported and only the default will chang= e looking at the description and my explicit origin-config "2" will ineed be the best option because i remove "Vary" explicit for static files and for extensions which are handeled with mod_deflate after hat add a vary for "Accept-Encoding" currently the settings are at "1" here because "Cache-Control: public, pr= oxy-revalidate" and ETAG-headers on each dynamic page, but "2" would be perfect * images are never gzip-compressed -> only one version needs to be cached= * static documents which may be compressed -> Vary on encdoing but not us= er-agent * php-files -> Vary: Accept-Encoding,User-Agent because they may generate= different content ___________________________________________________________________ I'm thinking we could turn the existing configuration options to trie-sta= te configs: 0 - Client header is used / honored even in the absence of Vary: header f= rom origin (this is default behavior) 1 - Client header is never used when performing the default alternate sel= ection. 2 - Client header is not used in alternate selection if there is no Vary:= from origin specifying to use it ___________________________________________________________________ # Properly handle requests behind proxies Header append "Vary" "User-Agent" Header unset "Vary" Header set "Vary" "Accept-Encoding" --1jQmHjgFPCBKTFcrOeAk8EAkg9aXkjeKK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.15 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlJ6SaoACgkQhmBjz394AnkaSgCeJ9ZiHqAn1EwbHVAqKcPfYgE0 pt8An3v836xUBRbu0IEU4rqt4+zXprD1 =ZzLs -----END PGP SIGNATURE----- --1jQmHjgFPCBKTFcrOeAk8EAkg9aXkjeKK--