Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-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 1A10B10233 for ; Mon, 9 Mar 2015 22:13:09 +0000 (UTC) Received: (qmail 2714 invoked by uid 500); 9 Mar 2015 22:12:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 2643 invoked by uid 500); 9 Mar 2015 22:12:59 -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 2628 invoked by uid 99); 9 Mar 2015 22:12:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 22:12:59 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [206.46.173.25] (HELO vms173025pub.verizon.net) (206.46.173.25) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2015 22:12:34 +0000 Received: from Christophers-MacBook-Pro.local ([173.79.164.201]) by vms173025.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0NKY00MAITNG7930@vms173025.mailsrvcs.net> for users@tomcat.apache.org; Mon, 09 Mar 2015 17:11:40 -0500 (CDT) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=QtXpBu2Y c=1 sm=1 tr=0 a=YZvWn4c/W8VqgPENxCgm9A==:117 a=NpewwFV3vp0A:10 a=IkcTkHD0fZMA:10 a=-57I09spAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=emO1SXQWCLwA:10 a=pGLkceISAAAA:8 a=j4nzMFrpAAAA:8 a=fxKQtyty1BYnkolee-sA:9 a=QEXdDO2ut3YA:10 Message-id: <54FE1A9C.40006@christopherschultz.net> Date: Mon, 09 Mar 2015 18:11:40 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-version: 1.0 To: Tomcat Users List Subject: Re: [URGENT] Content-Encoding: gzip not set References: In-reply-to: Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Igor, On 3/9/15 6:01 PM, Igor Cicimov wrote: > On 10/03/2015 6:14 AM, "Victor Rodriguez" > wrote: >> >> Greetings, >> >> I have some ALREADY gzipped files that I'm trying to serve up. >> >> I have the following in my web.xml. >> >> json >> application/gzip >> >> >> And, I have the following in my server.xml: >> >> path="/already-gzipped-json" /> >> >> >> From the command line, I can curl the files and gunzip them just >> fine, so they are coming across gzipped: >> >> curl http://localhost:8082/already-gzipped-json/fie.json | gunzip >> - >> >> However, requests coming from a web browser aren't handled >> correctly and aren't legible in the browser, and I believe it's >> because > Content-Encoding: >> gzip is not in the response headers. >> > You mean Accept-Encoding, right? Is tomcat fronted by apache, nginx > or something else that can add this header for you? Ironically, getting this to work as requested in Apache httpd is a complete nightmare. The Tomcat solution basically works *exactly* as a user would want it to work. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJU/hqbAAoJEBzwKT+lPKRYEmsQAKc1Pm9c9ihQb5A1DDiRYAAN p0xj6JxxwjP2a1OawVUSXZU5umftkehDana6mLTPgZ/WtrzGxj8NR1ysl7or/eyC slrkLruzp716jkDL2ySZt7l2PsJScOwAC1j1ZsGJA0HyIIHz5AmON0Aff1ihdCGz uLXzDS2JyW7pdVFy6YLhfkCibocPv1NsXxo6NCbuTd91Rd2kwe7/KJ4YOLxXh2GX oorlctGc4NuiM0eFoj4xeNrEodIalYZvhi8YyPEDpnifuItY2q2yKCAhjZMYVZ+X A0WsQgGds5DWkeWPrR1dnGL82ZyoI1hN2vm6j5oWJnmSqzwuuUUdezmWOmXFWOhS pIuCW2zvLdP/MDblwsV7NMOopfoqHhTqoM+5p+ttQviCMGe8ubDd5Q/JLenzehEr lKdR78m812cuO84CZtKq0yIKF0Ipc1oYtXXKrHKkMbQWHbcvWTRvoqSNYICicXWF PmmpRFytUXywUqjj3e++mKRqHWUWkg2WuABocbTtwOTouL8tXop/v018PkUBDf37 GqDzgVM0Y25O+jkxCj01ftDj+mrsDS5V8FH+sPtvt3DtgdWKTkIByNNeueau6zqh zSwB3FSBuWk9Six3DuwhTXHA/RX6kL3nnZX46Tv4RAT0wPkxFH2fKa/eD3IPTnng bWw+X47oId6UasMkj3pP =LKmV -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org