我已经创建了一个HTML页面,名为example page1.html,其中设置了onclick调用page2.html。
点击返回按钮时,页面1会加载所有以前的数据。我希望完全重新加载页面,并且不想记住任何设置。
祝好, Dev
我已经创建了一个HTML页面,名为example page1.html,其中设置了onclick调用page2.html。
点击返回按钮时,页面1会加载所有以前的数据。我希望完全重新加载页面,并且不想记住任何设置。
祝好, Dev
请设置以下标头:
Pragma: no-cache
Cache-control: no-cache
expires: 0
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
在那个页面的头部