response.setDateHeader("Expires",(new Date(0)).getTime());

解决方案 »

  1.   

    If linux, touch your jsp files!
      

  2.   

    win2000 advanced server+tomcat
      

  3.   

    1, 使用java提供的方法设置http头信息,在jsp或者servlet中都可以 
    <% 
    response.setHeader("Pragma","No-cache"); 
    response.setHeader("Cache-Control","no-cache"); 
    response.setDateHeader("Expires", 0); 
    %> 
    2, 使用HTML标记,如下: 
    <HEAD> 
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
    <META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
    <META HTTP-EQUIV="Expires" CONTENT="0"> 
    </HEAD>