You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open vscode in browser, open network panel, uncheck "Disable cache"
Make a change to tmLanguage.json (for example add 1 symbol in existing "$comment" field, like "$comment": "Hello" -> "$comment": "Hello1")
Re-deploy code-server
Reload the browser page with vscode
Observe in network panel that tmLanguage.json is not having the change
Expected
tmLanguage.json is not cached by browser when it has any changes
Actual
tmLanguage.json is cached by browser when it has any changes, so these changes do not appear until the page with vscode is reloaded without cache
Logs
No response
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
I am using a secure context.
Notes
I investigated a little bit and here are some thoughts:
I see that the code-server uses weak eTag to cache resource, I verified that on changes to tmLanguage.json eTag is not getting changed.
Seems like service worker (service-worker) intercepts requests, and, when catching 304 responds with cached resource which has 200 status. That's confusing to observe, that etag resource has 200 but not 304.
The text was updated successfully, but these errors were encountered:
Interesting, I believe the eTag and service worker are provided by VS Code, which means this might be an upstream issue https://github.com/microsoft/vscode
But, maybe there is something odd in the way we wrap VS Code that causes the issue. We should try to reproduce in Codespaces to see if it is an upstream issue or a code-server issue.
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.23.0Steps to Reproduce
"$comment": "Hello"
->"$comment": "Hello1"
)Expected
tmLanguage.json is not cached by browser when it has any changes
Actual
tmLanguage.json is cached by browser when it has any changes, so these changes do not appear until the page with vscode is reloaded without cache
Logs
No response
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
I investigated a little bit and here are some thoughts:
The text was updated successfully, but these errors were encountered: