There’s two factors involved
1. Is that caffeine shrinks your arteries. A lot of headaches are vascular meaning that they are the caused by too much blood flow in the brain. Reducing that blood flow helps relieve the pain.
2. Headaches are a symptom of caffeine withdrawal, so drink caffeine makes the withdrawal symptoms go away.
Latest Answers