Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rxjs.dev very often inaccessible #7414

Closed
ebeloded opened this issue Dec 20, 2023 · 10 comments
Closed

rxjs.dev very often inaccessible #7414

ebeloded opened this issue Dec 20, 2023 · 10 comments

Comments

@ebeloded
Copy link

ebeloded commented Dec 20, 2023

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

2023-12-20.at.13.58.12.mp4
@jakovljevic-mladen
Copy link
Member

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.

@ebeloded
Copy link
Author

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:

2023-12-21.at.13.52.44.mp4

@jakovljevic-mladen
Copy link
Member

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

Screen.Recording.2023-12-22.at.09.54.52.mov

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

@benlesh
Copy link
Member

benlesh commented Feb 20, 2024

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
Copy link
Member

benlesh commented Feb 20, 2024

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.

@jakovljevic-mladen
Copy link
Member

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?

@ofek
Copy link

ofek commented Apr 22, 2024

The website is also down for me

@jakovljevic-mladen
Copy link
Member

@ofek, have you tried Ben's suggestion?

@ebeloded
Copy link
Author

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

@jakovljevic-mladen
Copy link
Member

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants