Dietary modifications: While foods and beverages don't cause stomach ulcers or cure them, some dietary tweaks can help repair damaged stomach tissue instead of irritating it. Your healthcare provider may recommend avoiding fried foods, spicy foods, acidic foods, caffeine, and carbonated drinks, or anything with caffeine to help keep symptoms under control and speed up healing.