Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Internet Explorer (or other browsers) use old JavaScript files when I try to debug my ASP.NET program?

I'm changing a .js JavaScript file in my ASP.NET MVC 5 solution, but when I go to debug the program, Internet Explorer 11 frequently loads old JavaScript files (caught chrome doing it too ). What is the problem here, some setting I'm missing? Even if it has the cached JavaScript file in its cache, shouldn't it load the new one with the newer modified date?

like image 247
Isaac Bolinger Avatar asked Oct 02 '22 08:10

Isaac Bolinger


1 Answers

You can either read http://fiddler2.com/r/?httpperf to learn how browsers implement caching, or you can simply hit CTRL+F5 to get IE to bypass the cache.

IE cannot magically "know" that the server has a newer version without asking for it, which would defeat the purpose of having a cache in the first place.

like image 154
EricLaw Avatar answered Oct 05 '22 13:10

EricLaw