Chrome 现在一天比一天糟糕。我有一个 ASP.NET 应用程序。当用户执行 POST 操作时。然后他单击一个链接(GET 操作)。然后单击浏览器返回按钮。Chrome 再次执行 POST 操作。在任何其他浏览器中都没有问题。这是一个任何人都可以确认的例子。只需单击 POST 按钮,然后单击 GET 链接,然后单击 Back 按钮。创建 2 个 WebForm 页面,
WebForm1.aspx
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<input type="submit" value="POST" />
<a href="WebForm2.aspx">GET</a>
</form>
Http Details:
<%= Request.HttpMethod %>
<%= DateTime.Now %>
</body>
</html>
WebForm2.aspx
<%@ Page Language="C#" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<input type="submit" value="POST" />
<a href="WebForm1.aspx">GET</a>
</form>
Http Details:
<%= Request.HttpMethod %>
<%= DateTime.Now %>
</body>
</html>
更新:我在上面添加了DateTime.Now。这是观察,
Open WebForm1.aspx
Http Details: GET 9/24/2013 11:43:10 AM
Click Post Button,
Http Details: POST 9/24/2013 11:43:35 AM
Click GET Button(The Browser will redirect you too WebForm2.aspx),
Http Details: GET 9/24/2013 11:43:46 AM
Click Browser Back Button(The Browser will show WebForm1.aspx in address bar)
Http Details: POST 9/24/2013 11:44:17 AM