gpt4 book ai didi

javascript - 破解 IE 8 后退按钮/强制重新发送?

转载 作者:行者123 更新时间:2023-12-03 16:48:11 25 4
gpt4 key购买 nike

当我返回 IE 8 时出现错误

"Webpage has expired Most likely cause: •The local copy of this webpage is out of date, and the website requires that you download it again. What you can try: Click on the Refresh button on the toolbar to reload the page. After refreshing, you might need to navigate to the specific webpage again, or re-enter information."

这是绝对正确的,因为我们不允许缓存我们的网站。在 ff 中我们收到一条消息:

To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier.

[Resend] - [Cancel]

重新发送会导致我们整洁的错误页面声明不允许此类重新发送。此页面未在 IE8 中显示,因为我猜 IE 8 不够智能,无法重新发送这些表单。有解决方法吗?即使是禁用 IE 8 后退按钮的 hack 也会受到欢迎

最佳答案

这已被问过很多次 - 我 here at SO too

"Warning: page has expired" error in IE when hitting "back" button

1: 将 POST 改为 GET OR

2:将重定向发送到普通页面 - 使用 response.redirect 或 location.replace javascript

http://en.wikipedia.org/wiki/Post/Redirect/Get

关于javascript - 破解 IE 8 后退按钮/强制重新发送?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6509208/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com