Why will spray cans explode when exposed to heat?
The can is pressurized so it will spray.
If the gas is heated, it must either expand in volume or the
pressure will increase.
Because the can confines the volume, the pressure goes up.
When the pressure gets high enough, something gives - usually a
seam in the can.