Headaches after training in heat, just dehydrated?

My brother and I drank coca-cola at the STP this year. We took salt tabs, lots of Nuun, water, and SOME Gatorade, the 20-ounce coke at mile 175 felt awesome. EDIT: we ate on the bike a lot: bananas, cliff chomps, fruit, etc