I get headaches after long rides but after 20 years or so have put it down to sinus pains, must be exposure to cold air which sets it off. The simptoms can be similar for migrane and sinus.
Also get headaches almost every monday, put that down to irregular sleep at weekend.