Force browser to refresh javascript code while developing an MVC View?

后端 未结 3 1815
执念已碎
执念已碎 2021-02-03 11:43

Pretty straight-forward, I\'m developing an MVC5 application and have noticed (lately) that my Browser appears to be caching the JavaScript code I have on the view within

3条回答
  •  自闭症患者
    2021-02-03 12:16

    A quick trick that solves this problem consists of opening the script file in a new tab, then refresh it on this page. If you happen to have Chrome dev tools open it will even refresh it there.

    From dev tool you can even easily right click-open in new tab the script.

提交回复
热议问题