Visual Studio 2013 caching older version of .js file Visual Studio 2013 caching older version of .js file javascript javascript

Visual Studio 2013 caching older version of .js file


Clearing the cache history seemed a bit excessive and I don't want to do that all the time.

The following solution worked me in Internet Explorer:First enable script debugging:

  1. Tools menu -> select Internet Options
  2. On advance tab uncheck "Disable script debugging (Internet Explorer)"

Then make sure you get the newest page:

  1. From the Tools menu choose Internet Options.
  2. On the General tab, under Browsing history, click Settings.
  3. Under "Check for newer versions of stored pages" make sure "Every time I visit the webpage" is selected.
  4. Click the OK button.


If somebody has this problem and ctrl+F5, clearing browser's cache, restarting debugging, changing browser, changing web.config and rebuilding project don't help, then there is one last thing that works (at least for me): restart Visual Studio.

Also changing debugging port on local IIS Express helps but this is far more painful if working in a team or using Azure Active Directory etc.


Only solution that worked for me was changing the javascript file name and updating the bundle configuration to point at the new file. I tried everything else from restarting my pc, deleting bin/obj/cache/etc, CTRL F5, restart IIS, and so on.