Getting "You're offline" on mobile chrome PWA

Hey all. Not sure if anyone’s asked this yet but here goes.

Whenever I use the PWA on android chrome with no internet access, instead of the page loading in offline mode, I get a simple “You’re offline” screen.

The app works as expected on ironfox. (The reason why I don’t use it is because the PWA takes ~5 seconds to load as opposed to chrome, which is instantaneous (my phone is relatively slow).)

Does anyone else have this problem? What would be a possible fix?

Note: I am using the docker version of silverbullet, with caddy as a reverse proxy (caddy is the one managing the certificates)

Not sure why this would behave differently between browsers, you are accessing this via HTTPS? Otherwise you wouldn’t get offline functionality.

Is there any way to get access to a Javascript console in some way to see if there’s errors there?

Ok it was absolutely my fault, thanks for making me go to the javascript console. I have no idea why I didn’t mention in the post, but I am also using authelia to make my instance a bit more secure, and the error seemed to have to do with that. The console said that it couldn’t register the service worker because myinstance.com was behind a redirect and that was disallowed. Thanks for the help!

1 Like