清除浏览器缓存

阅读更多
private void cleanCache(HttpServletResponse resp) {
	resp.setContentType("text/html;charset=utf-8");
	resp.setDateHeader("Expires", 0);
	resp.setHeader("Cache-Control", "no-cache");
	resp.setHeader("Pragma", "no-cache");
	resp.setDateHeader("Expires", 0);
	resp.setHeader("Cache-Control", "no-cache");
	resp.setHeader("Pragma", "no-cache");
}

你可能感兴趣的:(清除浏览器缓存)