There is a clear difference between headaches and migraines. The former usually fades over time or with the help of an over-the-counter pain medication. The latter can be debilitating and frequent.
If you suffer from migraines, there are a few things that could be triggering them. Pay attention to your daily routine and take note if these things ring a bell:
1. Leftover Food
Protein rich food starts to break down after it has been cooked, which produces Tyramine , a natural compound that has been known to cause headaches. If you have leftovers containing protein that have been sitting around for more than 48 hours, it is better to get rid of them. Try to plan accordingly before cooking.
The problem with caffeine is that it often aids headaches rather than causing them. However, too much caffeine can cause headaches  as you come down from the high or if you go an extended amount of time without a caffeine fix.
Be aware that caffeine itself can still trigger migraines for some sufferers, and it may not only be in the form of coffee but also in chocolate and some teas.