Well, you probably got me on the eating right thing!!!
Honestly tho, the electrolytes help in my experience. I've had a heat injury before i learned that, and will not make the same mistake again. You might have been blessed with a more tolerant physique, I'm not sure.
If you go to the er dehydrated, they use a saline solution to hydrate you, so i would think that in extreme weather working long hours, you need to do the same. The cdc and osha agree with you to a point, but when it gets really hot just about all companies in construction actually supply squincher packets to keep the workforce properly hydrated. That costs money, and they wouldn't do that unless it was deemed medically prudent.
Electrolytes, it's what plants crave!
https://youtu.be/GFD2ggNxR1g