There is no cure for primary headaches, but the right treatments can effectively prevent and stop headache attacks. Avoiding triggers and managing underlying conditions can eliminate secondary headaches.v