Fixed iOS7 CaptivePortal detection & prevent cache poisening for redirects.