You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2018/11/15 15:12:15 UTC

[Bug 62913] New: Files not being compressed when using HTTP2

https://bz.apache.org/bugzilla/show_bug.cgi?id=62913

            Bug ID: 62913
           Summary: Files not being compressed when using HTTP2
           Product: Tomcat 9
           Version: 9.0.13
          Hardware: PC
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: emry.egyed@calero.com
  Target Milestone: -----

Overview:

  When serving content using the HTTP2 protocol, the content is not compressed.

Steps to Reproduce:

  1. Setup Tomcat to use HTTPS and the HTTP/2 upgrade protocol
  2. Turn on file compression in the connector (i used compression="force" so
all files should be compressed)
  3. Using curl, verify the files are returning compressed with the correct
Content-Encoding response header

  To test with HTTP1.1 (returns correctly)

  C:\temp\curl-7.62.0-win64-mingw\bin>curl -H "accept-encoding: gzip, deflate,
br" -I https://e-cc-p-build02:7100/index.jsp -k --http1.1
  HTTP/1.1 200
  vary: accept-encoding
  Content-Encoding: gzip
  Content-Type: text/html;charset=UTF-8
  Transfer-Encoding: chunked
  Date: Thu, 15 Nov 2018 15:06:55 GMT

  To test with HTTP2 (missing headers indicating file was compressed)

  C:\temp\curl-7.62.0-win64-mingw\bin>curl -H "accept-encoding: gzip, deflate,
br" -I https://e-cc-p-build02:7100/index.jsp -k --http2
  HTTP/2 200
  content-type: text/html;charset=UTF-8
  date: Thu, 15 Nov 2018 15:08:55 GMT

Actual Results:

  Files are served to the client uncompressed when using HTTP2 when compression
is enabled

Expected Results:

  Files are served to the client compressed when using HTTP2 when compression
is enabled

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 62913] Files not being compressed when using HTTP2

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=62913

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 OS|                            |All
             Status|NEW                         |RESOLVED

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Compression has to be configured explicitly for HTTP/2. The configuration is
not inherited from the HTTP/1.1 config.

http://tomcat.apache.org/tomcat-9.0-doc/config/http2.html

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org