1

I have a PHP application that works well in every browser except Internet Explorer.

The application generates reports based on MySQL data. Certain fields of each report are clickable and will redirect the user to another page/report after POST using the PHP header() call.

In Safari, Firefox, Opera, etc. when the user clicks the Back button they are taken back to the previous page/report. In Internet Explorer this behavior is broken and I get a "Webpage is expired" error.

I'm not worried about serving up stale data when using the Back button in IE.

Is there a setting I can tweak in IE to allow this behavior, or an HTML/PHP directive I can use?

4

2 回答 2

2

没有。Firefox、Chrome 等在这里实现了一个特定的功能,它指出浏览器历史记录中的最后一页并不真正计算在内。IE 显然没有该功能,也不知道可能存在这样的功能,因此无法尝试让它拥有它。(不过,较新的版本可能会实现这种行为。不确定。)

由于它真的不是关键任务,看起来那些使用旧浏览器的人只需要处理较少的体验。对不起!

于 2010-10-13T22:39:29.100 回答
0

尝试这个:

<?php header('Cache-Control: max-age=900'); ?> <html>

于 2014-01-05T06:51:17.337 回答