The kind of coffee you drink can make a huge difference as well. Filter coffee is typically larger in volume so there’s more acidic liquids going in to trigger your heartburn. Compared to espresso which is usually a smaller volume. It can be a huge difference in heartburn between coffee types.