Drinking or eating foods that contain caffeine can trigger a migraine; so can rapid or sudden withdrawal of caffeine. Remember that caffeine can be found in coffee, regular and diet sodas, teas, chocolate, and supplements, especially weight loss supplements.