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

[Documentation] Documentation website failed to load javascript resources #11133

Closed
1 task done
marcosun opened this issue Apr 25, 2018 · 3 comments
Closed
1 task done
Labels
docs Improvements or additions to the documentation

Comments

@marcosun
Copy link

marcosun commented Apr 25, 2018

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

When visiting https://material-ui.com/demos/app-bar/, the website should load javascript resources, i.e. app-bar.js, _error.js, main.js, as specified in the html.

Current Behavior

Three javascript files cannot be accessed with response status code 404 (app-bar.js, _error.js, main.js). These resources' url address take the following pattern: https://material-ui.com/_next/826c5e81-cb19-43a7-b1d5-78a5a031a506/main.js.

However, when I visit documentation website from a new browser (previously Chrome, now Safari) on the same laptop, javascript resources can be successfully loaded although url address is not the same as before: https://material-ui.com/_next/0509e9cc-b04b-47a6-bbd3-17e3a66d2eac/main.js

Steps to Reproduce (for bugs)

Go to https://material-ui.com/demos/app-bar/ in Chrome and open up Developer Tools. Have a look at Network tab.
image

Context

Your Environment

Tech Version
browser Chrome 66.0.3359.117
@oliviertassinari
Copy link
Member

It's serviceworker issue. Try clearing your cache.

@marcosun
Copy link
Author

marcosun commented Apr 25, 2018

Ok, after a little bit research I come up with this solution.

  1. Click 'Clear site data' button which you can find here: DevTool -> Application -> Clear storage

If this blocks you indefinitely visiting documentation website as I have, then

  1. Go to chrome://serviceworker-internals/ and unregister https://material-ui.com/

And now website is reacting again.

@oliviertassinari But how could this happen? Is there anything we can do to prevent this from happening again?

@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 25, 2018

The issue could be coming from us, workbox or chrome. Let's see if more people are affected. For now, I'm closing the issue.

@oliviertassinari oliviertassinari added the docs Improvements or additions to the documentation label Apr 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to the documentation
Projects
None yet
Development

No branches or pull requests

2 participants