Expansion and contraction of wood floors is more due to the level of humidity in the house, not the heat. When the wood drys out, it shrinks, and when it absorbs the humidity in the air during the summer, it expands again.

Sealing, varnish, shellac, with not stop this process. Only air conditioning in the summer and humidification in the winter will help.

Good luck!