Diet restrictions can certainly help, especially sodium and caffeine. Then there are those that feel that certain foods trigger it. Stress can trigger it.
I'm not one who prescribes to the "just have to live with it". There are medications that can help, treatments, etc. But it is true...