From dev-return-93459-archive-asf-public=cust-asf.ponee.io@httpd.apache.org Tue Apr 9 13:41:35 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0FA61180629 for ; Tue, 9 Apr 2019 15:41:34 +0200 (CEST) Received: (qmail 81070 invoked by uid 500); 9 Apr 2019 13:21:56 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 81060 invoked by uid 99); 9 Apr 2019 13:21:56 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Apr 2019 13:21:56 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 621D3C0253 for ; Tue, 9 Apr 2019 13:41:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.2 X-Spam-Level: X-Spam-Status: No, score=-0.2 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=greenbytes.de header.b=gQ5rnhMU; dkim=pass (1024-bit key) header.d=greenbytes.de header.b=ju58mhvA Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id YJYVSVKVWFfU for ; Tue, 9 Apr 2019 13:41:30 +0000 (UTC) Received: from mail.greenbytes.de (mail.greenbytes.de [217.91.35.233]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 2780A60E13 for ; Tue, 9 Apr 2019 13:41:30 +0000 (UTC) Received: by mail.greenbytes.de (Postfix, from userid 117) id 45E4F15A127E; Tue, 9 Apr 2019 15:41:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greenbytes.de; s=mail; t=1554817283; bh=JkD28GVv4D66hmLCjVa2OfqMYIOslRWP+4Xtbmp0qvE=; h=From:Subject:Date:References:To:In-Reply-To:From; b=gQ5rnhMUK8dP6/1pOrGUnJruI5rsYgAEP1Wb0BV71IbLNqg1Yn+lVhwM1Ln0EBBDc nBg+W/cURbxk3cd5zbjUrSpRfjFi3Z2tOYWnurOAHqyrR7BZ6otJyHIC9Ddr8M/ZdM JRiZnfbKSz/LWEu+TLF8/z9LOPXfaYzk6XadejbY= Received: from resistance.greenbytes.local (unknown [217.91.35.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mail.greenbytes.de (Postfix) with ESMTPSA id C6B8215A10FC for ; Tue, 9 Apr 2019 15:41:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greenbytes.de; s=mail; t=1554817282; bh=JkD28GVv4D66hmLCjVa2OfqMYIOslRWP+4Xtbmp0qvE=; h=From:Subject:Date:References:To:In-Reply-To:From; b=ju58mhvA4cu2Nqk9XG3svInUzEcqEAI/nYdRSp05d2j3BqQKs+F2hlaqU/OMnSCEJ b/dJidydQum5SnFdvX3ugNvzB3/kUl66Z7IX1ioijZsN55d7aDI/MJoUrEWXLPxhOg Z3k44RAJjlrLhP1Rq030bcZFhrTsJoey3utrROmQ= From: Stefan Eissing Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\)) Subject: Re: keep-alive and vary in 304 responses Date: Tue, 9 Apr 2019 15:41:22 +0200 References: <7394C4CC-F067-4CBB-9AF7-FF4726F53B64@greenbytes.de> To: dev@httpd.apache.org In-Reply-To: <7394C4CC-F067-4CBB-9AF7-FF4726F53B64@greenbytes.de> Message-Id: <4A241422-FF9B-4C32-BA10-6E7619D29508@greenbytes.de> X-Mailer: Apple Mail (2.3445.104.8) > Am 09.04.2019 um 13:36 schrieb Stefan Eissing = : >=20 >=20 >=20 >> Am 09.04.2019 um 13:27 schrieb Eric Covener : >>=20 >> On Tue, Apr 9, 2019 at 6:31 AM Stefan Eissing >> wrote: >>>=20 >>> I just did some tests with https://redbot.org/ (the site tester by = Mark Nottingham) against our server and it notifies of 2 things: >>>=20 >>> 1. The "Keep-Alive" header is deprecated. I tried to "Header unset = Keep-Alive" but that has no effect. Seems to be added very late. >>> Do we have a way to suppress it? >>=20 >> Doesn't look like it, maybe a good "help wanted" kind of task if >> anyone is lurking. >=20 > We rarely ever eat volunteers! >=20 >>> 2. Validation responses lose the "Vary" header from the = unconditional response. This happens on resources where mod_deflate is = active. >>> The 200 response without any "if-modified-since" etc. carries = "Vary: Accept-Encoding" as it should. >>> The 304 response with "if-modified-since" has no "Vary" header. >>> The code in mod_deflate looks as if it tries to add it in any case, = where is it lost? >>=20 >> bailing here, seems harmless if we add Vary to a 304 even when we >> don't know the original was long enough? >>=20 >> [Tue Apr 09 07:26:12.183430 2019] [deflate:trace1] [pid 37010:tid >> 123145306648576] mod_deflate.c(590): [client 127.0.0.1:64941] Not >> compressing very small response of 0 bytes >=20 > Ah, nice!=20 >=20 > Maybe if AP_STATUS_IS_HEADER_ONLY(r), the length check should not run? Meh! > curl -D xxx -H 'Accept-Encoding: gzip' https://eissing.org HTTP/2 200 date: Tue, 09 Apr 2019 13:36:10 GMT server: Apache/2.4.39 (Ubuntu) strict-transport-security: max-age=3D15768000 last-modified: Thu, 10 Aug 2017 11:16:47 GMT etag: "9a6-55664550a25c0-gzip" accept-ranges: bytes cache-control: max-age=3D3600 vary: Accept-Encoding content-encoding: gzip content-length: 1015 content-type: text/html > curl -D xxx -H 'Accept-Encoding: gzip' -H 'If-Modified-Since: Thu, 10 = Aug 2017 11:16:47 GMT' https://eissing.org HTTP/2 304 date: Tue, 09 Apr 2019 13:36:35 GMT server: Apache/2.4.39 (Ubuntu) etag: "9a6-55664550a25c0" cache-control: max-age=3D3600 Same for HTTP/1.1 requests. And same for https://httpd.apache.org The output filters are not in play at all. Was it always like this? -Stefan *scratches his head*