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

后端 未结 3 1784
执念已碎
执念已碎 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:11

    You might want to add a no_cache variable after your script url like:

     
    

    If you manage to put a random number to the place i indicated, the browser will automatically download the latest version of the script after an F5

提交回复
热议问题