prismarine-web-client icon indicating copy to clipboard operation
prismarine-web-client copied to clipboard

Blank page

Open zax71 opened this issue 11 months ago • 7 comments

The website hosted at https://prismarinejs.github.io/prismarine-web-client/ is just a blank page for me. I have disabled all ad blockers and the like to no avail. I have tried in Firefox and Chrome, each would load it once fine but upon reload be a white page for forever more

zax71 avatar Mar 02 '24 11:03 zax71

This seems like a caching issue, try https://prismarinejs.github.io/prismarine-web-client/index.html

extremeheat avatar Mar 02 '24 16:03 extremeheat

I experience this as well on Firefox. Using a private window, disabling service workers by setting dom.serviceWorkers.enabled to false, or using the alternate link in the previous post causes the issue to not occur.

x4fx77x4f avatar Mar 03 '24 00:03 x4fx77x4f

Again, it's probably due to a client-side caching issue. I could reproduce this issue sometimes myself until I erased my browser cache. A easy test would be to disconnect your computer from the internet and check if https://prismarinejs.github.io/ vs https://prismarinejs.github.io/404 still loads anyway.

extremeheat avatar Mar 03 '24 01:03 extremeheat

Oddly, it seems the problem is that all the pages at https://prismarinejs.github.io/* would be directed to the website at PrismarineJS/prismarinejs.github.io versus PrismarineJS/prismarine-web-client (as evidenced by <meta property="og:description" content="A Minecraft server, bot, and API all written in JavaScript"> in the returned HTML).

But anyway I just did a push to prismarinejs.github.io to invalidate any server side cache if it could be related.

From what it seems the root cause might have been that the website prismarinejs.github.io was being cached in the browser as a PWA, which takes over the whole domain. That would explain why the website loads anyway even with no network. I don't have this anymore after erasing my cache but if it becomes a problem in the future maybe we could delete the manifest.json in prismarinejs.github.io @rom1504

extremeheat avatar Mar 03 '24 01:03 extremeheat

Sure we can definitely do that, I don't think it's particularly useful for prismarimejs.github.io to have a service worker

On Sun, Mar 3, 2024, 2:34 AM extremeheat @.***> wrote:

Oddly, it seems the problem is that all the pages at https://prismarinejs.github.io/* would be directed to the website at PrismarineJS/prismarinejs.github.io versus PrismarineJS/prismarine-web-client (as evidenced by in the returned HTML).

But anyway I just did a push to prismarinejs.github.io to invalidate any server side cache if it could be related.

From what it seems the root cause might have been that the website prismarinejs.github.io was being cached in the browser as a PWA, which takes over the whole domain. That would explain why the website loads anyway even with no network. I don't have this anymore after erasing my cache but if it becomes a problem in the future maybe we could delete the manifest.json in prismarinejs.github.io @rom1504 https://github.com/rom1504

— Reply to this email directly, view it on GitHub https://github.com/PrismarineJS/prismarine-web-client/issues/366#issuecomment-1974970566, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAR437XJA3U3JN6SOXF6ULTYWJ4YXAVCNFSM6AAAAABEDBHESOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZUHE3TANJWGY . You are receiving this because you were mentioned.Message ID: @.***>

rom1504 avatar Mar 03 '24 11:03 rom1504

Still happens

namtacs avatar Jun 10 '24 10:06 namtacs

Will be fixed by https://github.com/PrismarineJS/prismarinejs.github.io/pull/79

extremeheat avatar Jun 10 '24 13:06 extremeheat