What is the best way to deal with headaches from caffeine withdrawals?

I'm going to be getting a cat scan in a couple days and they said I need to refrain from caffeine a couple days before it. I drink a lot of Coke and I understand that has a lot of caffeine in it.
3 answers 3