tomcat gzip compression not working for large js files
Posted on 2014-01-09 23:06 leon_ALiang 阅读(292) 评论(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"/>
solution 2:
Add the custom gzip filter