-
Notifications
You must be signed in to change notification settings - Fork 5.9k
workbench.api.js takes very long time to load in 3.1.1 and not cached properly on FireFox #1536
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
Comments
Maybe we should gzip any file that's over a certain size or just explicitly gzip the workbench file. You wouldn't happen to have "disable cache" checked in the Firefox dev tools, do you? (It's along the top near the |
No, I don't have cache disabled. (Otherwise I don't think it'd show up in FF's cached file list) |
I'm not sure; the checkbox might just prevent Firefox from using the cache rather than preventing it from storing into the cache. Could you verify whether the request has a |
My bad. FireFox sends |
That's interesting, why would Firefox do that? |
I believe it's the default behaviour from the older ages of the web when the only reason to reload a page is because something is broken so the cache can't be trusted. And this behaviour seems to be the compliant one with RFCs. |
Ahh, that's very interesting. I tested it out and going to the website again (typing it out, hitting a bookmark or a link, or hitting |
Fixed by #2680. |
Hi,
I've just updated code-server to 3.1.1. And I run my code-server on a remote server. I find the new code-sever taking fairly long (about 1.3 minute in my case). It seems to be caused by the long loading time of
workbench.api.js
. Furthermore on FireFox, this file although cached by FireFox; FireFox won't use the cache on the next load. Rendering opening code-server a waiting game.Also, as a side note. My PC can connect to the server at ~30Mbits/s but
workbench.api.js
loads ~880Kbits/s. Which is quite slow.(loading time of

workbench.api.js
on Chrome)(FireFox loads the file every time)


Best
OS: Arch Linux AArch64
VSCode: 3.1.1
Installed via PKGBUILD
The text was updated successfully, but these errors were encountered: