It would be good to minify js/css files before caching them. Looks like we can use yui-compressor which is written in Java and leverages Rhino. [YUICompressor](http://developer.yahoo.com/yui/compressor/) [Blog Post](http://blog.teamextension.com/yui-compressor-in-java-246) [Example](http://blog.teamextension.com/java/YuiCompressor.java)