The cognitive benefits of espresso can still be experienced while fasting, as long as the espresso is consumed without any additives such as cream or sugar. However, consuming espresso on an empty stomach may cause gastrointestinal discomfort in some individuals.