Belphegor
Belphegor

Reputation: 4766

Google chrome doesn't save changes of my code in the debugger

I am developing a web-application, and google-chrome started behaving weird. When I make change in a JavaScript file, after I hit refresh on the debugger - I still see the same code in the debugger, and the browser executes this old code. Why is google-chrome behaving like this and how can I solve this?

Upvotes: 2

Views: 4265

Answers (2)

Andrew Hall
Andrew Hall

Reputation: 3073

  1. Open Developer Tools, by right clicking and choosing "Inspect Element" or Ctrl/Cmd + Shift + J
  2. Click the Cog icon in the bottom right of that window.
  3. Choose the General Tab
  4. Tick "Disable cache"

This will disable Chrome from caching (locally storing) a copy of the js file

Upvotes: 5

TheBrain
TheBrain

Reputation: 5608

perhaps is a cache problem. try doing a cache refresh (ctrl-r, ctrl-f5). if you use cache.manifest file then you need to touch it in some way and double refresh your app for the changes to show.

Upvotes: 1

Related Questions