Este site irá ter funcionalidade limitada enquanto fazemos manutenção para melhorar a sua experiência. Se um artigo não resolve o seu problema e quiser colocar uma questão, temos a nossa comunidade de apoio à espera de o ajudar em @FirefoxSupport no Twitter, /r/firefox no Reddit.

Pesquisar no apoio

Evite burlas no apoio. Nunca iremos solicitar que telefone ou envie uma mensagem de texto para um número de telefone ou que partilhe informações pessoais. Por favor, reporte atividades suspeitas utilizando a opção "Reportar abuso".

Saber mais

Newest update broke ctrl+f5 cache javascript refresh?

  • 3 respostas
  • 1 tem este problema
  • 1 visualização
  • Última resposta por 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?

Solução escolhida

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?

Ler esta resposta no contexto 👍 1

Todas as respostas (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

Solução escolhida

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.

Modificado por Wej00 a