Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Newest update broke ctrl+f5 cache javascript refresh?

  • 3 个回答
  • 1 人有此问题
  • 1 次查看
  • 最后回复者为 Wej00

more options

I am a developer currently working with Javascript. Firefox updated either on the 28th or 29th of this week (I also updated to 50.0.2 after I found this problem, but the problem persists). Ever since this update, javascript cache no longer refreshes when I press ctrl+f5 or ctrl+shift+r. I can get it to refresh with the developer window open (and set to not cache in the settings), but clearly something broke, at least in my browser, with one of the most recent updates. Is there something I can do to fix this or is this a known bug?

I am a developer currently working with Javascript. Firefox updated either on the 28th or 29th of this week (I also updated to 50.0.2 after I found this problem, but the problem persists). Ever since this update, javascript cache no longer refreshes when I press ctrl+f5 or ctrl+shift+r. I can get it to refresh with the developer window open (and set to not cache in the settings), but clearly something broke, at least in my browser, with one of the most recent updates. Is there something I can do to fix this or is this a known bug?

被采纳的解决方案

Hmm, normally, I would verify file retrieval using the Network Monitor section of the Developer Tools. I'm not sure how to check without opening the developer tools. Are you using the about:cache page, or just finding the script to be incomplete/incorrect compared with what you last saved?

定位到答案原位置 👍 1

所有回复 (3)

more options

Do you mean an external file (<script src="file.js"></script>) is not updating when you use Ctrl+Shift+r? It definitely should update. If your cache isn't behaving normally, you might clear the whole thing and see whether that improves the situation.

See: How to clear the Firefox cache

If you have a large hard drive, this might take a few minutes. If you do not see the number going down on the page, you can reload it using Ctrl+r to check progress.

In extreme cases of brokenness, you may need to clear the cache2 folder physically (while Firefox is closed). It is in the Local AppData path:

C:\Users\username\AppData\Local\Mozilla\Firefox\Profiles\123.abc\cache2

more options

选择的解决方案

Hmm, normally, I would verify file retrieval using the Network Monitor section of the Developer Tools. I'm not sure how to check without opening the developer tools. Are you using the about:cache page, or just finding the script to be incomplete/incorrect compared with what you last saved?

more options

I cleared the cache manually, and though it would work to refresh the page once, it wouldn't refresh properly after. Watching the network, the javascript page didn't get called until I clicked a button. I then cleared the network console and suddenly, ctrl+f5 started refreshing properly again. (I also updated the javascript page for the main page once and hard refreshed, which could have caused it to work again). I don't exactly know why, but problem solved! Thanks for the help.

由Wej00于修改