TL;DR Much has been said about caffeine’s effect on headaches. Many say that it could cause migraine headaches, while others believe it could cure than do harm. But according to research, caffeine could in fact ease the pain from migraine because of two things – it has vasoconstrictive properties resisting blood flow, and that it speeds up the effectivity of painkillers. But too much caffeine could cause migraine too – mainly because of caffeine withdrawal and medication rebound.
Migraines can get so painful that people who suffer from them are often only able to do little, if nothing at all.
Migraine headaches are very common and are a major health problem globally. In the United States alone, there are about 38 million migraine patients - adults and children alike . That's about 1 in 4 households with people prone to migraines.
“Many people do not realize how serious and debilitating migraine can be,” the Migraine Research Foundation writes. “In addition to attack-related disability, migraine interferes with a sufferer’s ability to function in everyday life, whether that is going to school or work, caring for family or enjoying social activities.”
But there’s a silver lining:
Caffeine, which is in so many delicious products, actually helps relieve symptoms and boosts the effectiveness of medications.
Sounds too good to be true? Not really!
It's all backed by science.
Moments before migraine strikes, blood vessels start to enlarge. What makes caffeine an effective pain reliever is its vasoconstrictive properties that restrict blood flow, narrowing the blood vessels and eventually helping ease the pain.
More importantly, caffeine speeds up relief because painkillers work a lot faster with it.  Caffeine boosts the efficacy of acetaminophen, aspirin, and ibuprofen by up to 40 percent,  given that there's 100 mg or greater of the stimulant consumed. 
Here's a fun fact: caffeine and pain relievers work so well together that some over-the-counter medicines contain caffeine. If you're curious, Cleveland Clinic listed down the various OTC's and the amounts of caffeine in each through this link: 
Caffeine also helps cure other types of headaches. A rare type called hypnic headaches are experienced by elderly people, waking them up with intense pain in the middle of the night.
Caffeine is especially helpful for treating hypnic headaches that doctors prescribe a cup of coffee when it strikes, or even before grandma and grandpa hit the hay!
While caffeine helps provide a much-needed reprieve from migraines, it can also make them worse with over-consumption. These phenomena tell you that you've gone overboard:
A similar phenomenon is called caffeine rebound, which happens as part of withdrawal. While only 2 percent of the population suffers from it , caffeine rebound can cause a severe headache... even worse than a typical migraine!
Each person reacts differently to caffeine, so it's important to know where to draw the line.
A good rule of thumb is to be aware of how caffeine affects us while keeping tabs of how much we take in.
Here are some tips to make the most of our caffeine intake and say adieu to migraines:
As we said in this Viter Energy blog  about the work-life balance, it's a good idea to simulate your commute to work. You don't have to drive in to work, so instead take a walk around the block just before your workday starts and just after it ends. Send yourself a psychological signal.
And if you can avoid it, do not work after your walk around the block. Don't check work email. Don't answer calls from co-workers unless you really need to talk to them (or they are friends you socialize with).
Clinical psychologist Kelcey Stratton of Michigan Health Blog  has some sound advice on finding the right time to work:
If you’re a morning person, try to schedule important work and meetings during the first half of the day. Others may peak with energy in the afternoon. Depending on the type of job you have, try to maximize on these levels as you can.
The first bit of advice is to get up from the computer, turn off your phone, and go get some exercise, do something recreational, prepare a meal, or something other than work, on the same schedule as you did when you worked at the brick-and-mortar office.
If you used to get off at 5 p.m., quit working at home at 5. You might need to check email or prepare a report later that night, but be sure to get away from all electronic communications and computing devices for a while.
Another big tip is to take your coffee breaks and lunch breaks on the same schedule, or at least be sure to take them at some point. Do not skip your favorite part of the day!