0
我在global.asax.vb中有此代碼來禁用後退按鈕。Response.CacheControl無法在Firefox或Chrome中工作
Sub Application_BeginRequest(ByVal sender As Object, ByVal e As EventArgs)
Response.Buffer = True
Response.ExpiresAbsolute = Now().Subtract(New TimeSpan(1, 0, 0, 0))
Response.Expires = -1
Response.CacheControl = "no-cache"
End Sub
此代碼在IE中完美工作,但拒絕在任何其他瀏覽器(如Firefox或Chrome)中工作。我能做些什麼使它成爲多瀏覽器?