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

前端 未结 7 765
死守一世寂寞
死守一世寂寞 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:47

    In your references to CSS and Javascript files, append a version query string. Bump it everytime you update the file. This will be ignored by the web site, but web browsers will treat it as a new resource and re-load it.

    For example:

    
    
    

提交回复
热议问题