[Java] - better handling of which responses should be buffered
[JavaScript] - rebuild optimized JavaScript