如何在任何浏览器中单击后退按钮重新加载页面

时间:2010-05-04 12:45:55

标签: javascript html

我创建了HTML页面,例如page1.html,其中有一些设置onclick invoke page2.html

单击“返回”按钮,将加载第1页所有以前的数据。我希望完全重新加载页面,并且不想记住任何设置。

此致 开发

2 个答案:

答案 0 :(得分:2)

设置以下标题:

Pragma: no-cache
Cache-control: no-cache
expires: 0

答案 1 :(得分:1)

最简单的是将页面1过期 - 例如

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">

在该页面的头部

相关问题