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

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

    Since you mention only your testers complaining, Have you considered having them turn off their local browser cache, so that it checks every time for new content? It will slow their browsers a touch... but unless you are doing usability testing every time, this is probably a whole lot easier than postfixing the filename, adding a querystring param, or modifying the headers.

    This works in 90% of the cases in our test environments.

提交回复
热议问题