如何关闭 Firefox 上的缓存? [英] How to turn off caching on Firefox?
本文介绍了如何关闭 Firefox 上的缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在开发过程中,我必须一直在 Firefox 中清除缓存",以使其使用最新版本的 JavaScript 文件.
During development I have to "clear cache" in Firefox all the time in order to make it use the latest version of JavaScript files.
是否有某种设置 (about:config) 可以完全关闭 JavaScript 文件的缓存?或者,如果不是,对于所有文件?
Is there some kind of setting (about:config) to turn off caching completely for JavaScript files? Or, if not, for all files?
推荐答案
在 Firefox 地址栏中输入about:config"并设置:
Enter "about:config" into the Firefox address bar and set:
browser.cache.disk.enable = false
browser.cache.memory.enable = false
如果在本地开发,或者使用 HTML5 的新 manifest 属性,您可能还需要在 about:config 中设置以下内容 -
If developing locally, or using HTML5's new manifest attribute you may have to also set the following in about:config -
browser.cache.offline.enable = false
这篇关于如何关闭 Firefox 上的缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文