清除Struts中的缓存
//清清缓存,也不知有没有用;哈哈;
if(request.getProtocol().compareTo("HTTP/1.0")==0){
????????? response.setHeader("pragma","no-cache");
?????? }
????? if(request.getProtocol().compareTo("HTTP/1.1")==0){
????????? response.setHeader("cache-control","no-cache");
????? }
response.setDateHeader("expires",0);
?
?
1 楼 xuyao 2008-12-05 这个和struts有什么关系?