Fixed auth issues with precaching and removed pre ios7 issues