如何从 IE8 缓存中清除 Javascript?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9951375/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to clear Javascript from IE8 cache?
提问by George Hernando
I normally do web development with Chrome and sometimes FireFox. I'm now trying to fix a problem that occurs on IE8.
我通常使用 Chrome 和有时使用 FireFox 进行 Web 开发。我现在正在尝试解决 IE8 上出现的问题。
After updating a Javascript file for a web page, I've tried doing the following things to be able to load the changed file:
更新网页的 Javascript 文件后,我尝试执行以下操作以加载更改后的文件:
F5 CTL-F5 [Many times] Developer Tools > Cache > Alwasys Refresh from Server Tools > Internet Options > Browsing History > Settings > Every Time I visit the site
F5 CTL-F5 [多次] 开发者工具 > 缓存 > 从服务器工具的 Alwasys 刷新 > Internet 选项 > 浏览历史记录 > 设置 > 每次我访问该站点
But it's not picking it the changes. I can see the file is changed within Chrome
但它并没有选择它的变化。我可以看到文件在 Chrome 中发生了变化
回答by TGH
Ctrl-R
is short cut for clearing cache.
Ctrl-R
是清除缓存的捷径。
The always refresh from server is reset when you close the browser
当您关闭浏览器时,总是从服务器刷新
回答by Adam
Give this a shot, it's kind of a similar problem.
试一试,这是一个类似的问题。
How to force IE to reload javascript?
I would think something else is going on if you are able to see it in Chrome. Close out IE completely after clearing everything and start a new instance.
如果您能够在 Chrome 中看到它,我会认为正在发生其他事情。清除所有内容后完全关闭 IE 并启动一个新实例。