Chrome will not refresh local file when changing backbone template

随声附和 提交于 2019-12-07 01:09:35

问题


I'm working on a backbone application on Google Chrome (v19.0.1084.56) and when I am working on templates, both me (on Mac OSX Lion) and another developer (on Fedora) have to close the tab and reopen the file to see new changes. Forced refresh (cmd+R or f5) do not work.

I am using these flags for chrome to work on the file:

open /Applications/Google Chrome.app --args --allow-file-access-from-files --disable-web-security

I'm driving myself crazy with this close/open process. Has anyone run into this problem and have you found a way to refresh the file?

UPDATE: Another developer in the shop does NOT have the problem described above and is on chrome 18 instead of 19 on Fedora. Its beginning to look like a Chrome bug.

FURTHER UPDATE: Also tried using --disk-cache-size=1 --media-cache-size=1 as flags when opening Chrome and the issue still persists. Using Incognito Mode doesn't work either. However, if I manually go to Tools > Clear Browsing History and check both Clear Browsing History and Empty the Cache, and hit refresh, the template will load correctly. This narrows it down to a cache problem.


回答1:


After googling and researching, there is a way to disable cache on a page. By opening the Developer Console, in the bottom right-hand column there is a cog. In that menu there is a checkbox Disable Cache that once enabled, fixes the problem.



来源:https://stackoverflow.com/questions/11019727/chrome-will-not-refresh-local-file-when-changing-backbone-template

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!