@RequestMapping("/toIndex")
    public String toMain(HttpServletResponse response) {
        //禁止浏览器缓存
        response.setDateHeader("Expires", 0);
        response.setHeader("Cache-Control", "no-cache, no-store");
        response.setHeader("Pragma", "no-cache");
        return "index";
    }

 

相关文章:

  • 2022-12-23
  • 2021-07-17
  • 2021-12-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-21
猜你喜欢
  • 2022-12-23
  • 2021-07-20
  • 2022-12-23
  • 2021-10-20
  • 2021-10-16
  • 2021-05-30
相关资源
相似解决方案