Probing the dynamic response of dense matter with x-ray Thomson scattering