Electrolyte solutions to prevent migraine

Hello. I think my migraines are exacerbated by my caffeine habit which I'm not giving up. They typically start pounding around after noon. I have recently heard that electrolyte solutions like Gatorade may help. Have any of you had good results from this method? If the diuretic properties of caffeine deplete certain electrolytes this would make sense if it is the cause of the migraine. I'd love to hear your thoughts.