Wednesday, April 6, 2011

What browsers' Back button doesn't generate request to server

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?

From stackoverflow
  • 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.

  • 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

    BalusC : This set is incomplete.
    Luis : Care to elaborate?
    wheleph : I can't easily install specific version of IE on my machine. Are there other browsers? Some ancient FF for example
    BalusC : @Luis: See the link in my answer. @Wheleph: use [IETester](http://my-debugbar.com/wiki/IETester/HomePage) or a VM.
    Luis : You can use IE tester, which contains all the version of ie: http://www.my-debugbar.com/wiki/IETester/HomePage
    Luis : @BalusC thanks, you can control that from server side, but ie by default caches pages when using browser naviugation, i think this is the OP as asked originally.
    BalusC : When you use the wrong/incomlplete resposne headers, yes. It's not only IE, but every browser which adheres the HTTP spec.
    Luis : Are u sure Balus? From memory i recall having issues with ie with page caching and not with firefox when developing in ASP.NET, but maybe that has to do with the default headers sent to the browser...

0 comments:

Post a Comment