The problem with the temperature dependence of the Casimir force is investigated. We analyse high-temperature limit analytically making calculations at real frequencies. The purpose is to answer the questionwhy there is no continuous transition between real and ideal metals and why the result does not depend on the relaxation frequency. It is found that the contribution of evanescent s polarized fields is finite even for an infinitely small relaxation frequency (plasma model) and exactly cancels the contribution of propagating fields. For the ideal metal the evanescent fields do not contribute at all. The lowtemperature limit is analysed to establish behaviour of the entropy at T → 0. It is stressed that the nonlocal effects are important in this limit because the mean free path for electrons becomes larger than the field penetration depth. In this limit vF /a plays the role of the relaxation frequency, where vF is the Fermi velocity and a is the distance between plates. It is indicated that the Leontovich approximate impedance cannot be used for calculations because it is good for the description of propagating but not evanescent fields. It is found that due to nonlocality the Casimir entropy approaches zero at T → 0 when s polarization does not contribute to the classical part of the Casimir force.