Glucocorticoids are potent anti-inflammatories, regardless of the inflammation's cause; their primary anti-inflammatory mechanism is lipocortin-1 (annexin-1) synthesis. Lipocortin-1 both suppresses phospholipase A2 , thereby blocking eicosanoid production, and inhibits various leukocyte inflammatory events ( epithelial adhesion , emigration , chemotaxis , phagocytosis , respiratory burst , etc.). In other words, glucocorticoids not only suppress immune response, but also inhibit the two main products of inflammation, prostaglandins and leukotrienes . They inhibit prostaglandin synthesis at the level of phospholipase A2 as well as at the level of cyclooxygenase /PGE isomerase (COX-1 and COX-2),  the latter effect being much like that of NSAIDs , potentiating the anti-inflammatory effect.
To answer this question, we first must understand what heartburn is. It is a burning discomfort usually in the center of the chest that continues up to the throat in some individuals. Stomach acid refluxes (flows upwards through a valve called the lower esophageal sphincter) into the esophagus and irritates its tissue. Certain foods trigger heartburn and you need to identify the foods that trigger your heartburn. This slideshow may help you identify foods that may trigger heartburn and offers suggestions about how the risk for heartburn can be reduced.