With application cache failover

Fallback to using document.location.href = url when there is an error so we can hit the applicationCache in offline mode.