Hot or cold compresses to your head or neck. Massage and small amounts of caffeine. Over-the-counter medications such as ibuprofen (Advil, Motrin IB, others), acetaminophen (Tylenol, others) and aspirin. Prescription medications including triptans, such as sumatriptan (Imitrex) and zolmitriptan (Zomig)