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 2012/11/03 21:49:45 UTC
[Bug 54095] New: [patch] support gzipped versions of static
resources by DefaultServlet
https://issues.apache.org/bugzilla/show_bug.cgi?id=54095
Priority: P2
Bug ID: 54095
Assignee: dev@tomcat.apache.org
Summary: [patch] support gzipped versions of static resources
by DefaultServlet
Severity: minor
Classification: Unclassified
OS: All
Reporter: kustos@gmx.net
Hardware: All
Status: NEW
Version: trunk
Component: Catalina
Product: Tomcat 8
Created attachment 29546
--> https://issues.apache.org/bugzilla/attachment.cgi?id=29546&action=edit
patch that supports gzipped versions of files
If you want to serve gzipped versions of files you often use a filter, valve or
enable compression attribute on the connector. However this is suboptimal for
several reasons. Compression has to be done in memory so the whole content has
to be loaded into memory, the result is not cached meaning compression has to
be done over agin and sendfile can't be used.
The most efficient way to implement gzip serving to generate gzipped versions
of the resources at build time. Then use a custom filter that forwards to the
gzipped version if the user agent supports it. This way sendfile can be used
and compression is only done once at build time.
It would be nice if the DefaultServlet detected that there's a gzipped version
of the resource and serves it when the client supports it. The Jetty
DefaultServlet does exactly this:
http://download.eclipse.org/jetty/stable-8/apidocs/org/eclipse/jetty/servlet/DefaultServlet.html
Patch attached with tests and updated documentation.
--
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 54095] [patch] support gzipped versions of static resources by
DefaultServlet
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54095
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Thanks for the feature suggestion and the patch. This has been added to 8.0.x
and will be included in 8.0.0-RC4 onwards.
--
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 54095] [patch] support gzipped versions of static resources by
DefaultServlet
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54095
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|minor |enhancement
--
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