Adds compression for JSON responses over 1Kb