DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=41981>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41981 Summary: Compression seems to work only for certain files under ~48k Product: Tomcat 5 Version: 5.5.23 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Connector:HTTP AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I'm trying to compress JS files on my Tomcat server. It seems to work fine with the following configuration: <Connector port="80" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" useBodyEncodingForURI="true" compression="on" compressionMinSize="2048" compressableMimeType="text/css,text/javascript,text/html,text/xml,text/plain" /> This compresses the html, js, and css files nicely. I noticed a problem when the JS files were larger than ~48k. If it was, it would skip compression of them all together. If i deleted lines from the JS file to make it under that 48k threshold, it would be compressed properly. I tried making dummy js files full of just comments and it has the same behavior. The JS files are server properly with the text/javascript content-type. This is the same behavior if i access the JS files via <script> tags or directly from the browser. It seems to compress text/html content fine even when above 48k though. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]