If person is important for me I would analyze that happened. And then it depends on situation. If I understood that I offended the person or some disagreement occured I would try to discuss it with the person, apologize if there was real my mistake. If it doesn't help, ok, let this person go. If I am sure that nothing is wrong from my side, I let this person go.
But sometimes it does not work. For example, with colleagues. For example, people were friends until someone from them became their manager, it is often situation or not friends, just colleagues, which are not too friendly. And in this situation you will not change your team or members of your team just because they became not very friendly with you or keep the distance from you, if they perform well and results of work are really good. It will require some flexibility in this case to find key to everyone for constructive communication.
If this person is some online stranger ,with whom I have never met and it seems never will meet, for the reasons known only to him/her has started avoiding conversation, it is one's choice and let this person go of course.