Which browsers' back button does not generate

2020-03-03 04:48发布

I need to test my web application against a browser for which back button doesn't generate request to server.

Could you give me examples of such browsers?

2条回答
倾城 Initia
2楼-- · 2020-03-03 05:24

That doesn't depend on the browser used, but on the HTTP response headers sent to it. If the browser is by the response headers instructed to cache the page, then it will cache the page. But if it is instructed to not cache the page, then it will not cache the page and fire a real request.

You have control over the response headers on the server side.

查看更多
我命由我不由天
3楼-- · 2020-03-03 05:31

Internet explorer 6, not sure about 7/8. Make sure you dont have the following meta statements in your header (they will force page reload):

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">

Check this page for more info:

http://support.microsoft.com/kb/234067

查看更多
登录 后发表回答