ServiceWorker thinks I'm offline when I'm not

(Lukas Winkler) #14

Hi everyone,

There is a user on our forum ( who is having a really similar issue.

After clicking on an external link and pressing back, he isn’t able to access the forum any more, but only gets an Cannot load app - It looks like you are offline! Please check your network connection and try again error.
Removing the service worker only fixes the issue temporarily.

Does anyone have an idea on how to fix it and avoid getting the error again

You can find more information here:


(Jeff Atwood) #15

Make sure the user making the report is not using a beta browser, that is essential.


(Sam Saffron) #16

Yeah we really need the exact version of the browser, the OS and confirmation this happens with all plugins disabled.

1 Like


I have been experiencing this on lots of Discourse forums lately, running current stable Firefox on Linux and Mac

not using Adblock Plus, but Privacy Badger and Decentraleyes


(Lukas Winkler) #18

Answer from the user

(from Matomo forums - Cannot load app · Issue #12588 · matomo-org/matomo · GitHub)


"Cannot load app" for a meta topic
(Michael Brown) #19

Confirmed! Disabling Adblock Plus also makes my symptoms go away!

There’s definitely an unexpected interaction here with ABP and ServiceWorker.


Make Discourse play nice with the Wayback Machine
(Rafael dos Santos Silva) #20

I recommend the uBlock Origin instead of ABP:


(Michael Brown) #21

That also makes the problem go away :smiley:


(Lukas Winkler) #22

But it wouldn’t surprise me if this wasn’t just Adblock Plus but rather a combination of Discourse and something Blocking extensions do.

1 Like

(Jeff Wong) #23

Whoa, nice sleuthing! I never suspected adblockers as a culprit to some of the service worker cache issues - I’m curious to learn why adblockers block service workers’ request features, or what about it looks suspicious to them.


(Blu McCormick) #24

We have this issue too and I have google ad blocker.


(Sam Saffron) #25

@codinghorror what is your call here, do we junk the offline page for now (from non android) cause Adblock Plus messes it up or do we keep it and keep supporting people complaining about adblock.

(Note this is not about removal of the service worker, just the way it creates the “your browser is offline” page)


(Jeff Atwood) #26

I am not very sympathetic to self inflicted adblock issues


(Andy Logan) #27

I’ve been running ABP (chrome, FF, MacOS Sierra) and haven’t hit that issue at all. I run ABP in the default mode, nothing tweaked, not sure if that makes a difference. Using multiple communities besides my own (Discourse hosted) and meta.

1 Like

(Fabian Dellwing) #28

As I’m with you on that, it may look very unprofessional to customers if they cannot visit a forum because “they are offline”, which they aren’t.

For me, this is not a problem at all, since I know how to work around. But since the problem is not only happening with ABP (see #17 and #24), I see the task to change something on discourse’s shoulders.


(Jeff Atwood) #29

Post #17

Post #24

Neither of those are Discourse, so I respectfully disagree that it has anything to do with us.


(Fabian Dellwing) #30

The issue with matomo forums was opened by me. So I have to disagree that it has nothing to do with Discourse, as the matomo forum is a Discourse instance. And it is the only thing I know of that has this sort of problem.

1 Like

(Sam Saffron) #31

You got to report this to Adblock plus, yes we can workaround by stripping a feature but this must be reported to the broken chrome plugin


(Jeff Wong) #32

I just managed to reproduce this issue on try by visiting a topic with a title starting with the word “Advertising”:

It appears to be looking for watchwords. It definitely seems like a rabbit hole to work around this.


(Jan Vlug) #33

I have seen this issue on all (about four) discourse forums that I visit.

I’m using Firefox with these privacy plugins:

  • HTTPS Everywhere
  • Privacy Badger
  • DuckDuckGo Privacy Essentials
  • uBlock Origin

Workaround: click the reload button while holding the shift key.