Re: serving pre-compressed files

2011-06-11 Thread Rainer Jung
On 09.06.2011 18:22, Christopher Schultz wrote: > Jesse, > > On 6/9/2011 8:34 AM, Jesse Farinacci wrote: >> I just wrote a >> quick javax.servlet.Filter. It sanity checks: 1) no ?gzip=false >> parameter (a la Tomcat's compression filter), and 2) Accept-Encoding: >> {,x-}gzip in any of the headers,

Re: serving pre-compressed files

2011-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse, On 6/9/2011 8:34 AM, Jesse Farinacci wrote: > I just wrote a quick javax.servlet.Filter. Oh, if you're willing to do so, please share your code with the list. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Us

Re: serving pre-compressed files

2011-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse, On 6/9/2011 8:34 AM, Jesse Farinacci wrote: > I just wrote a > quick javax.servlet.Filter. It sanity checks: 1) no ?gzip=false > parameter (a la Tomcat's compression filter), and 2) Accept-Encoding: > {,x-}gzip in any of the headers, and 3) th

Re: serving pre-compressed files

2011-06-09 Thread Pid
On 09/06/2011 13:34, Jesse Farinacci wrote: > Hello, > > On Thu, Jun 9, 2011 at 4:27 AM, Pid wrote: >> >> Not quite the same, but similar, is the following: >> If you're using Tomcat 7, you have Servlet 3 compatibility, which means >> you can serve resources out of a specially* constructed jar. >

Re: serving pre-compressed files

2011-06-09 Thread Jesse Farinacci
Hello, On Thu, Jun 9, 2011 at 4:27 AM, Pid wrote: > > Not quite the same, but similar, is the following: > If you're using Tomcat 7, you have Servlet 3 compatibility, which means > you can serve resources out of a specially* constructed jar. > > * Put resources in: myresource.jar:/META-INF/resour

Re: serving pre-compressed files

2011-06-09 Thread Pid
On 08/06/2011 16:03, Jesse Farinacci wrote: > Greetings, > > I'm using Tomcat 7.0.14 and IBM Java 6. As part of my web > application's bundling mechanism (via Maven) I have the ability to > pre-gzip compress static resources. I'd like Tomcat to detect that a > request for /path/to/resource has /pa

Re: serving pre-compressed files

2011-06-08 Thread André Warnier
Jesse Farinacci wrote: Greetings, I'm using Tomcat 7.0.14 and IBM Java 6. As part of my web application's bundling mechanism (via Maven) I have the ability to pre-gzip compress static resources. I'd like Tomcat to detect that a request for /path/to/resource has /path/to/resource.gz available, an

serving pre-compressed files

2011-06-08 Thread Jesse Farinacci
Greetings, I'm using Tomcat 7.0.14 and IBM Java 6. As part of my web application's bundling mechanism (via Maven) I have the ability to pre-gzip compress static resources. I'd like Tomcat to detect that a request for /path/to/resource has /path/to/resource.gz available, and serve the gzip'd conten