From users-return-265160-archive-asf-public=cust-asf.ponee.io@tomcat.apache.org Thu Jul 26 00:05:44 2018 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D489118062C for ; Thu, 26 Jul 2018 00:05:43 +0200 (CEST) Received: (qmail 27503 invoked by uid 500); 25 Jul 2018 22:05:42 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 27489 invoked by uid 99); 25 Jul 2018 22:05:42 -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; Wed, 25 Jul 2018 22:05:42 +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 B8D66C193A for ; Wed, 25 Jul 2018 22:05:41 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.37 X-Spam-Level: ** X-Spam-Status: No, score=2.37 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 0UF7Ua_RjNR8 for ; Wed, 25 Jul 2018 22:05:40 +0000 (UTC) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id D7B745F18F for ; Wed, 25 Jul 2018 22:05:39 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id n11-v6so10716wmc.2 for ; Wed, 25 Jul 2018 15:05:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=0QqvDwAb9fbRvRX0eS8srgomkQ24sn4kbDnHei22l90=; b=IVxlGpw5lsC3oRQIAD/3YvBwonZE2Mueo8IJasjer1FQPde0t+SLGVYk2iPWzZ3LGb Ftexyh+gmIgBr2SFmB9C4qxm9Ahtl2hnzVSqx+OnyGNpMOrWYiAgkf73Jm6eO9m4axbi 2YxT9GaeqPuHvWOS8L2jTijy9L6iwqs+anNFYlu17GEtkGHW7EXhBsD2sQQ4EuCEEuIs NuU+zgAkQVpO9+IJPUoW4+ggfggDQqmBtOz8Iof7gzmkJhneafGV+NoWEuH4cQZo24pI djm0epbEX5Urm6Fn+2Iyc9iwrkYiEeFmregE90PRgVdJPgjlGrdtEdNaPvBX5ySwWxqY viFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=0QqvDwAb9fbRvRX0eS8srgomkQ24sn4kbDnHei22l90=; b=Lua60grtSb1GeXXoY7gvKCXhELIq9h3K8MUZf6jxeoASjio4fJZZC2fIRDEReAFhir 5f3PLhwO1b7P08RVDbU9cr1JBC0iil9fhfsfdpPAd8OhOxCUDzqSPkvWoxwdbGrCZGMx viSJbLp8rZacR6P9EC6is2TFk8XxeGFxc5giL3VovmaVlEa76hZspeYWgT5UMRslEKKV 52KMZZpYgvSfNk83y+vqVE/tA7iUaXR+PIv9kP+vCa1bEUVtqQBZwuKj+WqmKXVnDVBH r+H5VEZOZXwOhrcK1sq/FCBOTqPhoJJFU5dGyoOYDu0cQAShd3jb6YLKMKiMPP42kuGT 7r3Q== X-Gm-Message-State: AOUpUlFa6dujc0IWw4FkxBl3A8BCDeN31tOcKLzUj7ErraX826+3Ic0G t8TLCN5H0dRPmIPeiaOa/Ms933MRy61gJ3AM34A0H3XG X-Google-Smtp-Source: AAOMgpeYpdOsYodhfRsV24xr89cwMstuzHUOzsIdVHVxvvT7HGkXLR2xMXllomAvPpHPHWPLAyoqvuwrhRZPcufL22s= X-Received: by 2002:a1c:5e08:: with SMTP id s8-v6mr5992110wmb.88.1532556338613; Wed, 25 Jul 2018 15:05:38 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a1c:750d:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 15:05:38 -0700 (PDT) From: Aayush Dev Date: Wed, 25 Jul 2018 18:05:38 -0400 Message-ID: Subject: HTTP2 compression on Tomcat 8.5.31 To: users@tomcat.apache.org Content-Type: multipart/alternative; boundary="0000000000002950780571da1487" --0000000000002950780571da1487 Content-Type: text/plain; charset="UTF-8" With Tomcat 8.5.31, I cant enable gzip compression with HTTP2 protocol. If someone has successfully enabled compression on Tomcat 8.5 with HTTP2 protocol, please help me with correct configuration. Things tried: - tried with and without useSendfile="false" attribute under UpgradeProtocol. - turned off "useSendfile" by adding "sendfileSize=-1" init-param for default servlet under conf/web.xml - tried APR (with OpenSSL) connector too instead of NIO - compression is not working with Chrome and Firefox (latest ver.) - testing with default ROOT webapp to avoid any other conflicting setting - gzip compression works with same setting on Tomcat 9.0.5 - using openjdk 10.0.1 (and tried with Oracle Java 1.8.0_144) Using the following connector: Request headers (from Chrome): :authority: localhost:8443 :method: GET :path: /tomcat.css :scheme: https accept: text/css,*/*;q=0.1 accept-encoding: gzip, deflate, br accept-language: en-US,en;q=0.9 cache-control: no-cache pragma: no-cache referer: https://localhost:8443/ user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36 Response headers (from Chrome): accept-ranges: bytes content-type: text/css date: Wed, 25 Jul 2018 21:48:16 GMT etag: W/"5931-1524878698000" last-modified: Sat, 28 Apr 2018 01:24:58 GMT status: 200 Thanks in advance. --0000000000002950780571da1487--