-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Pierre,

On 1/29/18 1:07 PM, Pierre Chiu wrote:
> Here is the request/response header. You can tell
> Content-Encoding:gzip is missing when http2 is enabled.
> 
> 
> 
> General  (same with/without http2) Request
> URL:https://xxxxxxxxx.ca/tomcat.css Request Method:GET Status
> Code:200 Remote Address:198.163.180.42:443 Referrer
> Policy:no-referrer-when-downgrade
> 
> 
> Request Headers (same with/without http2) 
> Accept:text/css,*/*;q=0.1 Accept-Encoding:gzip, deflate, br 
> Accept-Language:en-US,en;q=0.9,zh-TW;q=0.8,zh;q=0.7 
> Cache-Control:no-cache Connection:keep-alive 
> Cookie:_ga=GA1.2.1536574675.1508533871; __utmc=29525935;
> __utmz=29525935.1508478784.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=
(none);
> __utma=29525935.990581674.1508478784.1516634493.1516996006.24 
> DNT:1 Host:xxxxxxxxx.ca Pragma:no-cache 
> Referer:https://xxxxxxxxx.ca/index.jsp User-Agent:Mozilla/5.0
> (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like
> Gecko) Chrome/63.0.3239.132 Safari/537.36
> 
> 
> Response Headers (without http2) Accept-Ranges:bytes 
> Content-Encoding:gzip Content-Type:text/css Date:Mon, 29 Jan 2018
> 17:55:59 GMT ETag:W/"5931-1516324390000" Last-Modified:Fri, 19 Jan
> 2018 01:13:10 GMT 
> Strict-Transport-Security:max-age=31536000;includeSubDomains 
> Transfer-Encoding:chunked Vary:Accept-Encoding 
> X-Content-Type-Options:nosniff X-Frame-Options:SAMEORIGIN 
> X-XSS-Protection:1; mode=block
> 
> 
> Response Headers (with http2) accept-ranges:bytes 
> content-type:text/css date:Mon, 29 Jan 2018 18:03:06 GMT 
> etag:W/"5931-1516324390000" last-modified:Fri, 19 Jan 2018 01:13:10
> GMT status:200 
> strict-transport-security:max-age=31536000;includeSubDomains 
> x-content-type-options:nosniff x-frame-options:SAMEORIGIN 
> x-xss-protection:1; mode=block
> 
> 
> 
>> On Jan 29, 2018, at 9:49 AM, Christopher Schultz
>> <ch...@christopherschultz.net> wrote:
>> 
> Pierre,
> 
> On 1/29/18 7:03 AM, Pierre Chiu wrote:
>>>> According to the change log, this is fixed in in bug 60276. 
>>>> However, I cannot make it work.
>>>> 
>>>> Gzip compression working fine without the UpgradeProtocol
>>>> tag. Adding UpgradeProtocol for http2 and gzip compression
>>>> stop working.
>>>> 
>>>> 
>>>> <Connector port="443" 
>>>> protocol="org.apache.coyote.http11.Http11AprProtocol" 
>>>> SSLEnabled="true" scheme="https" secure="true" 
>>>> maxHttpHeaderSize="32767" maxThreads="150"
>>>> URIEncoding="UTF-8" compression="on" useSendfile="off"
>>>> defaultSSLHostConfigName="*. xxxxxxxx.ca"
>>>> 
>>>> <UpgradeProtocol
>>>> className="org.apache.coyote.http2.Http2Protocol" 
>>>> compression="on" 
>>>> compressibleMimeType="text/html,text/xml,text/plain,text/css,text/j
ava
>
>>>> 
script,application/javascript,application/json,application/xml"
>>>> 
>>>> 
> compressionMinSize="0"
>>>> />

Are you making requests directly to Tomcat, or is there a reverse
proxy in between?

Is is possible that a servlet other than the DefaultServlet is
handling the request?

- -chris
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQJRBAEBCAA7FiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAlpvZ5cdHGNocmlzQGNo
cmlzdG9waGVyc2NodWx0ei5uZXQACgkQHPApP6U8pFjEPw//RpcMamGqoMW2Z5P0
x3cgjvriPpSIDfeG0iS8g+sQqbv4okrPGvftlzBd/7pjF4cGM2iUTNryyTXaLNmy
I61t8l0IMT8oCJpPhcRFar47F4+ftgN1GhfSm6yecFEVS8sZoDi5pK/CGZDsAu0s
JrObk2Rtsq4QiiFtL+X3kzixXaEdUBTPet2CukFR3fTIWlXDwaNzD2BO2bF87amg
2jTwiBGuRMAhwThiY0hdVMX1tjE+7poIlNntags3OCs0yOYq6/GAOQWL6AJwIm71
45cTmZ7IvzKNQG8YmUyXbYyMugCMZ41nbeXks0bEIvdf93AxBTEFaB8K1vOfKJ/R
zD4puW3p43wCc4m7IfhzM6P+ETqLLPHjJ37ygBNEvV9/q/sOk6adzVJ1MGkHBPps
HprBejOmBXWZggKZ5m/5uyhzHB46ucN59BbQdqeWRwjiY65PNB/KxT0JpHyQcSxZ
kKfmaFwdpq/4JI/HQ9wAbteEaEsiVqNlTzUjRmId4opsq1kZlYKOuNfl5uH3k9CW
ntfMMvQ7L5TBhWmO7yZTwMY0phZEvx51o9cwhV2RgAstUHKGANKA6SvwSezu9dex
Fp6+9MxsBBkG8Vfq0ceYtxPzT69Dlw+JlzaUb/g4aoc9eDvDnEbEi3iQ0sFkujy/
f2GJAq7dM/56dIxzhp9k+0fQYFo=
=hN1Q
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to