asp.net 清除缓存OpenShowDialog模式下

    在showdialog模式下,经常会出现调用open时,不访问服务器端,仅从缓存获取数据。

    加了一下代码到header内,就不会出现这种状况。

    <base target="_self" /> //在自身打开窗口,如果不设置,重新加载页面会在新窗口打开
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Cache-Control" content="no-cache">
    <meta http-equiv="Pragma" content="no-cache">

原文地址:https://www.cnblogs.com/si812cn/p/1443823.html