Jsp 页面不缓存、缓存清理

2015-07-14· 1030 次浏览
## 在Jsp页面顶部添加如下代码 ```java <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% response.setHeader("Cache-Control", "no-cache"); response.setHeader("Cache-Control", "no-store"); response.setDateHeader("Expires", 0); response.setHeader("Pragma", "no-cache"); %> ```