Check protocol version before using compression