Pesto is meant to be served raw rather than cooked to preserve the freshness of the ingredients. Also, when heating pesto, it can become bitter and turn a darker color. Pesto is best served at room temperature.