change to appcache handling
- on appcache error, query navigator.onLine to determine online state