Source:10 years experience as a working barista.
I could take the excedrin-style things but coffee is pretty easy. And the goal isn't "max caffeine", the goal is 150-250mg.
The funny thing is that I really have no idea if this caffeine+ibuprofen routine is actually effective. One of my doctors in grad school suggested it, as someone who also suffered aura-only migraines. He said it worked for him, and I figured that either it was sometimes effective, or I'd have some placebo action working for me, so I just adopted it. :) I'm OK with placebo if it's working. The caffeine is based on an older theory of vasoconstriction that seems to not be aligned with the modern thinking on migraines, but, eh, mine are pretty tame compared to what some people get so I haven't felt the need to work too hard to optimize this.
Of course, then you take away the espresso - there's always a trade-off :)
My favorite episode was when I went to my doctor, said "yeah, it's good, I haven't had a migraine for like 6 months", and as part of the physical he shined a pen light in my eyes ... and I went home and developed a migraine. sigh.
(Fortunately, some time in my 20s, I stopped getting the headache part for the most part and now just have aura -- which renders me partly unable to see, alas -- and feeling pretty off for a while.)