I just wanted to share my experience with migraines so that it may help someone else.
I grew up drinking coffee, tea - i.e. things with caffeine.
Then at some point (a couple of decades later) I would start to get these migraines. They would start out as a small headache but after a couple of hours would turn debilitating.
I finally figured out the connection - caffeine. I had to stop drinking the tea I loved and considered my comfort food. It was tough and took some time but now for the most part I am migraine free.
A friend whom I used to work with used to get migraines as well and would end up at the hospital. Anyway she finally came to the same conclusion on her own, even though she knew my story.
I am not saying it is the same for everyone's headache issues but it might help some.