Are you drinking enough water? Lack of water can trigger headaches. Sodas can make things worse because they suck up the water in your body, leaving you dehydrated.
Also, take a multivitamin to compensate for any nutritional deficiencies.
It could even be something that you’re eating. Sometimes acidic foods can cause head aches.
Get enough sleep. Get your eyesight checked. Being in front of the computer too much can cause eye strain and lead to head aches.
It could be stress as well.