rxjs icon indicating copy to clipboard operation
rxjs copied to clipboard

rxjs.dev very often inaccessible

Open ebeloded opened this issue 2 years ago • 6 comments

Describe the bug

I've been referencing documentation from rxjs.dev for years now and I find that the website is quite often inaccessible. The issue appears to be related to service workers and can be reproduced in Chrome/Arc/Safari.

2023-12-20 at 13 53 25 2023-12-20 at 13 48 40

Here's a video showing the issue. The website can only be loaded with CMD+SHIFT+R

https://github.com/ReactiveX/rxjs/assets/5859177/be3521af-b460-4637-bde0-a72776a980d0

ebeloded avatar Dec 20 '23 21:12 ebeloded

Hi @ebeloded, I don't really know how to reproduce this issue on my machine. Any chance to help me with providing some more details?

BTW, even though it seems like that https://rxjs.dev/index.html works correctly, you should probably be accessing RxJS docs site by using https://rxjs.dev/ domain.

jakovljevic-mladen avatar Dec 21 '23 21:12 jakovljevic-mladen

Hey. Thanks for getting back to me. Not that I'm not accessing "index.html" - it's what the service worker is requesting.

As for reproduction (in Chrome):

  1. Open Guest profile (which works more like a normal profile when it comes to SW)
  2. Open rxjs.dev
  3. Reload the page

Here's a video of me doing just that:

https://github.com/ReactiveX/rxjs/assets/5859177/ad7b3453-955f-419c-b395-aaaaea48e6b3

ebeloded avatar Dec 21 '23 21:12 ebeloded

I'm sorry, but this is what I get:

https://github.com/ReactiveX/rxjs/assets/28087049/4cb8a708-f135-4334-a567-2662369902b9

Is it possible that some Chrome plug-in is causing this behaviour? Or some OS settings that you have since it affects other browsers?

jakovljevic-mladen avatar Dec 22 '23 09:12 jakovljevic-mladen

I suspect this is something to do with the service worker going bad. You'll need to open up dev tools to uninstall the service worker.

I don't use Safari, so I've used ChatGPT to generate instructions on how to uninstall the service worker:

Uninstall Service Worker for rxjs.dev in Safari on macOS

Step 1: Access Preferences

  • Open Safari Preferences either through the Safari menu (Safari > Preferences) or using the shortcut Command + ,.

Step 2: Enable Developer Menu

  • Navigate to the Advanced tab in the Preferences window.
  • Check the option at the bottom to Show Develop menu in menu bar.

Step 3: Manage Service Workers

  • With the Develop menu now visible, navigate to rxjs.dev in Safari.
  • Click on the Develop menu in the menu bar, hover over the website you're inspecting to find options related to service workers.
    • If available, look for options like Empty Caches or specific service worker management options under this menu.
    • For direct service worker management, select Service Workers from the Develop menu if the option is available, to see and potentially unregister service workers.

Step 4: Clear Website Data

  • If direct management of service workers isn't visible, you can clear website data for rxjs.dev as a workaround:
    • Go to Safari Preferences > Privacy, then select Manage Website Data.
    • Search for rxjs.dev, select it, and click Remove to clear data, which includes cached data and potentially unregistering service workers.

Step 5: Restart Safari

  • Quit and restart Safari to ensure all changes take effect.

benlesh avatar Feb 20 '24 16:02 benlesh

On Chrome, it's as simple as going to the Application tab in dev tools and clearing local data. Just make sure you have "uninstall service worker" checked.

benlesh avatar Feb 20 '24 16:02 benlesh

I completely forgot about the service worker 🙈 The image also shows that an error happens in ngsw-worker.js file suggesting that worker may be causing the issue...

@ebeloded, can you please try Ben's suggestion and let us know?

jakovljevic-mladen avatar Feb 21 '24 08:02 jakovljevic-mladen

The website is also down for me

ofek avatar Apr 22 '24 02:04 ofek

@ofek, have you tried Ben's suggestion?

jakovljevic-mladen avatar Apr 22 '24 07:04 jakovljevic-mladen

I no longer experience the issue originally described. Not quite sure what changed though ¯_(ツ)_/¯

ebeloded avatar Apr 22 '24 15:04 ebeloded

@ebeloded, thanks for letting us know. I will close this ticket in that case.

@ofek, if your issue persists, please open a new ticket.

jakovljevic-mladen avatar Apr 23 '24 08:04 jakovljevic-mladen