Nevertheless, you can be sarcastic with people that you know well and with those who know your type of humor, such as your best friend, otherwise, you risk making people around you feel uncomfortable. That being said, when someone is giving you a compliment, all you have to do is to simply respond with “thank you”.
In addition, you can respond to a compliment with another compliment, but without being too weird or sarcastic. For example, when someone says that your hair looks good today, respond with “thank you, you have beautiful hair as well.”