今天發現網站的某個頁面性能奇慢無比,用firebug,fiddler發現莫名其妙的自動調用了當前Controller的 Index action.
<script type="text/javascript">
var imgLoader = new Image();
imgLoader.src = "";
</script>
或
<img src="" />
IE會自動訪問當前Controller的Index action.
以上測試環境在IE8。
Firefox,Chorme下未出現。
記得上次老趙也提過,空路徑造成session丟失的問題,未試驗。
切忌圖片空路徑!
還有一份讓IE崩潰的代碼,貼一下,留作紀念。
<html><head>
<style type="text/css">
#a {
margin:0 10px 10px;
}
#b {
width:100%;
}
</style>
<title></title>
</head>
<body>
<table><tr><td>
<div id="a">
<form id="b">
<input type="text" name="test"/>
</div>
</td><td width="1"></td></tr></table>
</body></html>