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
Whether debugging locally or publishing to a github page *.md documents automatically generated md files are always cached and need to be manually refreshed on each page to get the latest *.md documents.
I tried the following method but it still doesn't work
The document does not automatically refresh when the page is closed and reopened, requiring the user to manually refresh (this will cause confusion for users reading the document with old versions)
What is the expected behaviour
Get the latest version of *.md files in real time
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: MacOS 12.3.1
Node.js version: 12.16.2
npm/yarn version: 6.14.4
Browser version: Chrome
Docsify version: 4.12.2
Docsify plugins: I think there is no plugins called this bug
Please create a reproducible sandbox
sandbox can't reproduce this problem, only in browser.
Mention the docsify version in which this bug was not present (if any)
Not found yet.
The text was updated successfully, but these errors were encountered:
The issue described here seems to be not Docsify's problem, but how browsers cache files, and whether or not static servers obey request headers. A static server should tell the browser not to cache anything (if desired) or to set a certain cache duration.
On the other hand, if you've cleared the applications local storage (f.e. in the Chrome devtools Application tab) and even disabled the browser cache (f.e. in the Chrome devtools Network tab), but you are still seeing old content upon a force refresh (f.e. cmd-shift-r in macOS, otherwise ctrl-shift-r), then that is another issue.
@fankes You mentioned that if you force refresh, you do see the content. In that case, the issue isn't with Docsify, but regarding how your server of choice is serving files, and whether it obeys the request headers, and whether it sends the appropriate headers in the response.
We should consider adding a simple cache-busting option to Docsify, f.e. something like described in #2118. Closing this one in favor of that one.
This issue is a long time ago, and it's really a browser problem.
Now I am using vuepress instead it, when I published on github.io (static compiled website) it has the same cache problem, but vue using random file extension to fix this problem, it work well in some time, but some time not caused by github.io cdn cache (I think), so it still a server or browser's problem.
But thank you for your job.
Bug Report
Steps to reproduce
Whether debugging locally or publishing to a github page *.md documents automatically generated md files are always cached and need to be manually refreshed on each page to get the latest *.md documents.
I tried the following method but it still doesn't work
Two issues with the same problem: #1119 #937
↑ Tried the solution but still doesn't work.
What is current behaviour
The document does not automatically refresh when the page is closed and reopened, requiring the user to manually refresh (this will cause confusion for users reading the document with old versions)
What is the expected behaviour
Get the latest version of *.md files in real time
Other relevant information
Bug does still occur when all/other plugins are disabled?
Your OS: MacOS 12.3.1
Node.js version: 12.16.2
npm/yarn version: 6.14.4
Browser version: Chrome
Docsify version: 4.12.2
Docsify plugins: I think there is no plugins called this bug
Please create a reproducible sandbox
Mention the docsify version in which this bug was not present (if any)
Not found yet.
The text was updated successfully, but these errors were encountered: