Asp.net 在IE中从父窗口打开新窗口将清除父窗口的缓存

Asp.net 在IE中从父窗口打开新窗口将清除父窗口的缓存,asp.net,internet-explorer,browser-cache,Asp.net,Internet Explorer,Browser Cache,我有一个web应用程序,当单击链接时会打开一个新窗口。但一旦我这样做,我浏览器的缓存就会被清除。如果我不点击链接,缓存仍然存在 我尝试了标准的target=\u blank和window.open方法,它们都会导致清除缓存 这里是指其他人遇到同样的问题,但没有解决方案 你知道为什么吗 IE 7和8这对我有用,请尝试并让我知道: Html第1页家长: <%@ Page Language="VB" AutoEventWireup="false" CodeFile="wpop1.aspx.vb"

我有一个web应用程序,当单击链接时会打开一个新窗口。但一旦我这样做,我浏览器的缓存就会被清除。如果我不点击链接,缓存仍然存在

我尝试了标准的target=\u blank和window.open方法,它们都会导致清除缓存

这里是指其他人遇到同样的问题,但没有解决方案

你知道为什么吗


IE 7和8这对我有用,请尝试并让我知道:

Html第1页家长:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="wpop1.aspx.vb" Inherits="pruebas_wpop1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE" />
    <title>Parent</title>  
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <asp:TextBox runat="server"></asp:TextBox>
    <a href="wpop3.aspx" target="_blank" >Popup</a><br/>
    <asp:Button runat="server" Text="Button" />
    </div>
    </form>
</body>
</html>
Html第2页第2页:

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="wpop3.aspx.vb" Inherits="pruebas_wpop3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">       
    <title>PopUp</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    This is the Popup Window.
    </div>
    </form>
</body>
</html>

你是如何测试缓存是否被清除的?老实说,我正在调试应用程序,在上一页的页面加载上有一个断点,应该是缓存。IIS中的动态内容默认情况下不会发生缓存-你是否返回了正确的缓存控制头?这听起来不太对,我还没有看到任何关于类似问题的报道。你能在另一台机器上复制吗?你能编辑你的帖子并列出你是如何验证这一点的,以及你为什么得出这个结论的吗?这对我来说是在启用和禁用兼容模式的Internet Explorer 8.0上工作的。
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="wpop3.aspx.vb" Inherits="pruebas_wpop3" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">       
    <title>PopUp</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    This is the Popup Window.
    </div>
    </form>
</body>
</html>