最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to reload the page on back button click in any browser - Stack Overflow

programmeradmin3浏览0评论

I have created the HTML page for example page1.html with some setting onclick invoke page2.html

On Click Back button the page1 is getting loaded will all previous data. I want plete reload of page and donot want to remeber any setting.

Regards, Dev

I have created the HTML page for example page1.html with some setting onclick invoke page2.html

On Click Back button the page1 is getting loaded will all previous data. I want plete reload of page and donot want to remeber any setting.

Regards, Dev

Share Improve this question asked May 4, 2010 at 12:45 DevDev 311 silver badge2 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 2

Set the following headers:

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

Simplest is to expire page1 - for example

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

in the head of that page

发布评论

评论列表(0)

  1. 暂无评论