Excedrin worked for me before I quit coffee.
Also, since starting a low-carb keto diet two years ago, I haven't had a single migraine (I used to get 2-3 per month, both painful ones and visual auras). When I was a pediatric neurology prof a few years ago, a keto diet was standard of care for the kids, and the department was starting research into keto for chronic migraines. Give it a try!