如果要顯示最新的數(shù)據(jù)需要在頁面中進(jìn)行設(shè)置,取消緩存。
在showModalDialog的頁面的Head標(biāo)簽內(nèi)增加如下代碼:
<meta http-equiv="pragma" content="no-cache">
這樣頁面就不會(huì)被緩存。從而保證了在對(duì)數(shù)據(jù)進(jìn)行修改后,再次打開頁面后顯示最新的數(shù)據(jù)。
HTML方面
<meta http-equiv="pragram" content="no-cache">
禁止瀏覽器從本地緩存中調(diào)閱頁面。
網(wǎng)頁不保存在緩存中,每次訪問都刷新頁面。
<meta http-equiv="cache-control" content="no-cache, must-revalidate">
同上面意思差不多,必須重新加載頁面
<meta http-equiv="expires" content="0">
網(wǎng)頁在緩存中的過期時(shí)間為0,一旦網(wǎng)頁過期,必須從服務(wù)器上重新訂閱。
.NET方面
Response.Expires = -1;
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注