<%
response.expires=0
%>

解决方案 »

  1.   

    在上一个页面的<head></head>里写上<meta http-equiv="progma" content="no-cache">
      

  2.   

    <script>
    <!--
        var theURL = document.referrer;
        this.location = theURL;
    //-->
    </script>
      

  3.   

    在“上一个页面”的<head>里加上
    <meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
    <meta http-equiv="progma" content="no-cache">然后改 history.go(-1)为 location.href= 'oldURL'
      

  4.   

    而如果上一个页面是php文件,用单纯的history.go(-1)却是可行的.只要在开头加上
    <?php
      Header("Cache-Control: must-revalidate");
      $offset = 0;
      $ExpireString = "Expires: " . gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
      Header($ExpireString);
    ?>
      

  5.   

    jsp页面
    用history.go(-1)的原因是因为可能返回好几个页面,所以用history.go(-1)可以直接回去,如果用 location.href= 'oldURL'
    还得判断来源,改动量比较大
      

  6.   

    用cookie.大致思路,设一个变量用来标志是否需要刷新。起初始值为0。在history.go(-1)之前,把他置1.然后返回。  在每个需要实现返回就自动刷新的页面上的onload里判断该值是否为1。如果为1,清零标志,刷新。另外。在加了。
    <meta http-equiv="expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
    <meta http-equiv="progma" content="no-cache">
    的页面里,用history.go(0). location.reload(), location.href=self 之类的进行刷新是不会读缓存的。总之,就history.go(-1)他特殊。异类!哈哈。这种方法肯定是可以的。希望你能解决问题。
    (刚刚通宵到现在没睡。晕中... )
      

  7.   

    <a href="javascript:window.history.go(-1);window.location.reload(true)">back<a>