-
Notifications
You must be signed in to change notification settings - Fork 9
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
Chrome bookmark loads cached content #18
Comments
I bookmarked my local tiddlywiki as "localhost:8080/mywiki5.2.1.html", and open this wiki ("localhost:8080/mywiki5.2.1.html") by click the bookmark bar of chrome. When I used Timimi as save tools, I didn't find any "refresh" problem, so I think it may be not due to "the cache of chrome". |
I am going to make a guess here.
You need to use the |
@lilx2018 can you paste the full widdler command you run? Also, do you have any plugins installed (in the wiki)? |
the wikifile locate at G:\workspace\leanote\tools\widdler\lilixiong\mywiki5.2.1.html, the command line (exe) work directory is G:\workspace\leanote\tools\widdler |
I run a visualC++ rebuild task to make computer very busy, the problem repeat almost every time when I click the bookmark toolbar button. So I copy "localhost:8080/mywiki5.2.1.html" to the url addres input editor instead click bookmark toolbar button, I can't find the problem occur again, this make me guess that if open a webpage by url address if will always reload the content, and maybe do more work which I don't understand. (* THESE ARE NOT TRUE But beacuse the problem is occur randomly,I will do more test, if not occur again, I will close this issue. After restart my computer, if I open my wiki by click the bookmark toolbar button, I find the problem still exist. |
I don't know this will help or not. step 1: I open browser and click bookmark "mywiki", the log show that step 2: I modify a tidder, and save, the log show that step 3: I close browser step4: I open browser and click bookmark "mywiki", this time the log show that step5: I reload "mywiki", the log show that |
Crazy, it seems chrome caches the bookmarks differently to entered urls. |
@lilx2018 Is the G drive or any folder containing the wiki files a shared folder? |
@qbit No any shared folder on G driver, but driver G is a removable SDD. |
THe page https://www.cnblogs.com/ziyunfei/p/6308652.html give some information about the difference between open by addressbar url and open by bookmark of chrome reload ( but it is Chinese), say that if open by hyperlinks to web pages or bookmark, Chrome will made no web request (unless the cache expires). There are two way to avoid this problem:
不知道你们注意过没有,除刷新外,常规加载一个网页的途径有两种,最常见的一种是通过点击其他页面的超链接(包括浏览器书签)进入当前页面,还有一种是在浏览器地址栏上输入网址并回车(高级用户),这两者在发送请求上也是有区别的。前者是不会发起任何条件请求的(除非缓存过期),而后者是会为页面资源本身发起条件请求的(你可以用上面的 demo 做测试),Chrome 新的这个刷新机制其实就是把刷新改得和在地址栏回车一样了。鉴于现如今的大多页面都是动态页面(没有 Cache-Control/Expires/Last-modified 响应头),不会被缓存,所以如今这三者在 Chrome 上的差别已经很小了。 |
Close the issue because it is a new "reload policy" of new Chrome version. |
Add following lines to wikifile seem solve the problem:
|
Unfortunately, more tests show that only adding following lines not solve the problem, the refresh problem still exists.
|
I don't know if it's appropriate to say that twserver-go do not find the same problem after enough tests. |
I use widdler as local web server, and chrome as the web browser. I found that when I modified a tiddler , saved the tiddler, widdler told me that it saved succes, so I closed chrome browser. But next time I opened the modified tiddler, the browser shown me the old content which before modified!!! I must click refresh button to refresh the content (refresh button work well).
Maybe this caused by the cache of chrome, but this behave is very dangours when I start to next modify the same tiddler. It casuse me lost the modified content frequently.
Any one can help me to void this problem?
OS: win10, Browser: chrome version 96.0.4664.110, Tiddlywiki version 5.2.1, widdler: build from sourecode myself
The text was updated successfully, but these errors were encountered: