The fluorine K-edge of LiF is studied both experimentally and theoretically as a function of temperature. Instantaneous thermal fluctuations in atomic positions are shown in molecular dynamics simulations to increase in amplitude from 0.029 to 0.064 nm in the temperature range from 40 to 298 K. This is sufficient to cause instantaneous deviations from local octahedral atomic symmetry in this rock-salt crystal, resulting in altered electronic structure. The lowered symmetry of the lowest core-excited states of fluorine atoms is evident in X-ray absorption spectra at the F K-edge. In addition, sufficient radiation exposure produces a new X-ray absorption peak, below the F K-edge of LiF, which is assigned to defects in LiF based on both calculations and comparison to previous experiments.