@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"; }
@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"; }