Which browsers' back button does not generate request to the server?

后端 未结 2 1661
[愿得一人]
[愿得一人] 2021-01-05 16:07

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条回答
  • 2021-01-05 16:30

    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.

    0 讨论(0)
  • 2021-01-05 16:54

    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

    0 讨论(0)
提交回复
热议问题