-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Victor,
On 3/10/15 6:33 PM, Victor Rodriguez wrote: > I'm sorry. Don't apologize, just listen and respond appropriately. > I should have prefaced my original question by stating that I'd > read the Tomcat documentation Great. So, what is it about just setting gzip="true" on the DefaultServlet that won't meet your needs? > The only solution I found was having a servlet filter that adds > the 'Content-encoding: gzip' response header That shouldn't be necessary. > and since I was referencing static content outside of any war > file, That's the first time you mentioned this requirement, although it's easily solved. The solution depends upon your Tomcat version, which you still haven't bothered to mention. > I didn't want to have to write a servlet filter. That shouldn't be necessary. > Underlying Chris's original response was the assumption that I > hadn't already read the documentation or done some research on my > own prior to asking for assistance here, which was not the case. If you read the docs, why didn't you say that you had read them? If you had read them and understood them, you wouldn't have had to ask the question that you did. Instead, you may have asked for clarification before you actually tried configuring it. http://www.catb.org/esr/faqs/smart-questions.html > And then he didn't even point me to the pertinent documentation, > but rather just said that I should read the documentation. If he > had pointed me to the pertinent documentation, I would not have > been upset, but simply telling me to read the documentation pissed > me off a bit. The Tomcat documentation, while not the winner of any recent Pulitzer Prizes, is definitely navigable: go to the Tomcat home page, and under the "Documentation" menu, choose the version of Tomcat you are using. There is even a top-level item for "default servlet" which Mark told you to configure. Searching for "gzip" finds one relevant option. I honestly don't understand why this is so hard. And no, I'm generally not a jerk on this list. Had your tone been a little more ... accommodating, I would have adjusted to that. > telling someone to read the documentation without even so much as a > hint as to where to look is analogous to telling someone to read > the JDBC spec in response to a JDBC question (which by the way has > also happened to me!) That depends upon what the question was. If you asked what the return type was for ResultSet.getString(String), I might tell you to go read the spec, or at least the Javadoc. This is a mailing list to support a community, not to be your own personal reference librarian. So, back to the original question: why doesn't gzip="true" meet your needs? Your original muttering on the subject: On 3/9/15 5:25 PM, Victor Rodriguez wrote: > Thanks Mark! Unfortunately, that is not an option. The client > will be requesting the files without the .gz extension. either misunderstood the solution or you have some hidden requirement that you aren't telling us. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQIcBAEBCAAGBQJVAEDBAAoJEBzwKT+lPKRYoc4P/iliA4J2eu1c61p6Z7NgSxl1 iocnme3HxkrE4z9h1Q0krHYFdiO1Z/CMWvsssibM/lKzG4luRZkOWKtMl49UiXW2 4zS2cZ0iwx1OtD/jSeTLc0hB6hoFdiiRCOG053ZNT7TyGLmarfuDs92j8YJbqLud 6l9Yggbk1T/zYRPoxzlarS/ZqPX7llDO3dUc0J4QmgSZHzXCHwnxCiUfW8NZutBG kqp5g7u+PMh6ZIH2PfJ2oXsIaQmxY7gK9VrCwgqL0p6PJAqn8SxIcKucRjB6Ynb8 bp6Lj2eKwWvwwz/Pked+cWLVEXD45AxM1hJplJz45s/PBQdUkRMB9Yfh5R1lCTo/ qkJVwIyP4xl0VgBRE4TIxhoVQlFNKokZsrLIHcvJXe2W1puCLE3phQMtgPTEFf98 XXJ3q4XgBYsD6cFeD2iQlupbmp2j9GYQdPqrWgMzf7dTlYGEnOYQsG+CNIm1o+i6 7k9zDIcfRYdvkF0zMkGYx9RnkuAJFOYwdrt4VAzqxrLkjJcPJVs7k0Zo71FTBY4T rAKWZlc4png0x5tE81gA+06Q69azFGd8SiAg03PvBXlmpw+3SJSgsOkAfq+PDt7o /uwkCyxjH2069C3bVYP1buOReUKXrK4Q9wxy2OQVYWmgP9SIk2OIQuFAA8hvm0V3 H4Td0N+YzfKLMvBFmK9c =N998 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org