Headache is often a sign of caffeine withdrawal so drinking caffeine will help with the headache in that circumstance. Caffeine constricts your blood vessels so if you stop drinking it the vessels expand, causing pain. If you suffer through it for long enough the headache will eventually go away on its own
Latest Answers