Tag Archives: tomcat

1 second guide – enabling gzip compression in Apache Tomcat

This is one of those note-to-self posts. Add the following attributes to the <Connector> in Tomcat’s server.xml to enable gzip compression of responses: compression=”on” compressionMinSize=”2048″ compressableMimeType=”text/html,text/xml,text/csv,text/css,text/javascript” Done.

Posted in Java, Software Engineering | Tagged Java, tips, tomcat | Leave a comment