Patient: Why do I get headaches? I have been having them on and off over the course of the last few days that I was diagnosed with shingles. They go away after I take Ibuprofen and get some rest but they come back at night. I am also taking a few other medications that my health care provider said was alright to take with the ibuprofen because there would be no interaction. I am taking valacyclovir, methylprednisoneSolone and Oxycodone-Acetaminophen. I was wondering what was causing my headaches. maybe the valacyclovir?