-----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" <victropo...@gmail.com> > wrote: >> >> Greetings, >> >> I have some ALREADY gzipped files that I'm trying to serve up. >> >> I have the following in my web.xml. >> >> <mime-mapping> <extension>json</extension> >> <mime-type>application/gzip</mime-type> </mime-mapping> >> >> >> And, I have the following in my server.xml: >> >> <Context docBase="/path/to/already-gzipped-json" > 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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org