# ServiceWorker pensa che io sia offline quando non lo sono

**URL:** <https://meta.discourse.org/t/serviceworker-thinks-im-offline-when-im-not/77886>\
**Category:** Bug\
**Created:** [12 Gennaio 2018, 8:57pm UTC](https://meta.discourse.org/t/serviceworker-thinks-im-offline-when-im-not/77886 "2018-01-12T20:57:16Z")\
**Posts on this page:** 1\
**Showing post:** 10

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [26 Gennaio 2018, 10:25pm UTC](https://meta.discourse.org/t/serviceworker-thinks-im-offline-when-im-not/77886/10 "2018-01-26T22:25:09Z")

</div>

Not much done, everything I did got reverted.

The underlying issue is what @riking mentioned, there are other exception cases that we are not handling. Probably worth testing DNS failure on local and seeing what comes back from the worker.

Also maybe we should only bother passing through the promise if navigator.onLine is false?  
[Navigator: onLine property - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/NavigatorOnLine/onLine). I wonder how implemented this is these days @awole20?

---

_[View the full topic](https://meta.discourse.org/t/serviceworker-thinks-im-offline-when-im-not/77886)._
