How can I force a hard refresh (ctrl+F5)?

前端 未结 7 785
死守一世寂寞
死守一世寂寞 2020-12-02 17:38

We are actively developing a website using .Net and MVC and our testers are having fits trying to get the latest stuff to test. Every time we modify the style sheet or exter

7条回答
  •  日久生厌
    2020-12-02 17:53

    What you might do is to call your JS file with a random string each time the page refresh. This way you are sure it's always fresh.

    You just need to call it this way "/path/to/your/file.js?<random-number>"

    Example: jquery-min-1.2.6.js?234266

提交回复
热议问题