po98 发表于 2014-1-10 09:07:12

tomcat gzip compression not working for large js files

Posted on 2014-01-09 23:06 leon_ALiang 阅读(1) 评论(0) 编辑 收藏
solution 1:

<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
useSendfile="false"
compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/xml,text/javascript,text/css,application/javascript,text/csv"/>

http://grokbase.com/t/tomcat/users/111d593qft/tomcat-6-0-gzip-compression-not-working-for-large-js-files

solution 2:

Add the custom gzip filter

http://darrenzhu.iteye.com/blog/1894261

xxqyzsc 发表于 2014-1-10 09:53:08

有时候,一个人想要的只是一只可握的手和一颗理解的心。

zzk_yn 发表于 2014-1-10 10:13:26

有些东西失去了,可能就再也回不来了,所以请好好把握

吴贺华 发表于 2014-1-10 10:45:19

执子之手、与子偕老?你演给我看吧.
页: [1]
查看完整版本: tomcat gzip compression not working for large js files