It should be noted that the technique is not without problems. Rapidly cooling a hot component from, lets say, 100 deg C to -10 deg C* can mean that a 100% working, faultless component cracks.
Second, many cooling sprays contain flammable substances. Their autoignition temperature is around 400 deg C **, so it can become dangerous if you have something very hot in the system. Or if you system e.g generates sparks (switches, relays), which can ignite the gas, because its flash point is much lower than 400 deg C **.
There are non-flammable cooling sprays, which I prefer.
* Some sprays proudly claim they reach -55 deg C, -10 deg is a conservative figure.
** Don't quote me on this.