Disable the back button on firefox?

Hi all,
I using
response setHeader("Cache-Control" ,"no-cache")
response setHeader("Catch-Control", "no-store")
response setHeader("Pragma", "no-cache")
it seems only whark on IE not firefox.
are there any good way to deal with?

The "Catch-Control" header doesn't exist, likely you meant "Cache-Control". And using the setHeader() you will overwrite each previously set header.
Here is the complete set:response.setHeader("cache-control", "max-age=0, must-revalidate, no-cache, no-store, private"); // HTTP 1.1
response.setHeader("pragma", "no-cache"); // HTTP 1.0
response.setDateHeader("expires", -1); // ProxyThe HTML head variant:<meta http-equiv="cache-control" content="max-age=0, must-revalidate, no-cache, no-store, private">
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">Make sure that you clears your browser cache before testing.
If you're using this to prevent login/logout/postdata problems, rather implement PRG pattern and use Filters.

Similar Messages

  • How to disable the back button when displaying a form

    Hi ,
    i have form A calling form B, when form B is displayed i want to disable the
    back button in the explorer so as not to allow the user from going back to
    form A.
    thanks.

    When you open a new window, call following javascript function also to disable the "back" button.
    window.history.forward(1);
    It will work.

  • Disabling the Back button

    Hi
    How to disable the back button in the Internet Explorer in Java or Jsp or Servelts.
    Thanks in advance

    Why are you repeating the question? You posted the
    same question two days ago:Well, that was a long time ago. Technology has
    advanced since then and might have provided a
    solution.:)

  • How do I disable the reload on the back button of Firefox and have it display the cached/prior page version?

    Every time I click the "back" button, Firefox reloads the previous page I was on. How do I disable the reload and have Firefox display the cached/prior page version? The whole point of going "back" is to see what we were just looking at.. I don't want a refreshed version of it. Any help would be greatly appreciated! I am running version 3.6.12.

    No problem. It's not a request that's been seen much if at all to be honest. I rely on them myself.
    You can always feel free to provide feedback to Apple though.
    http://www.apple.com/feedback/

  • Is there any way to disable the back button of the browser?

    Hello,
    I dont want to cache some pages in my application so that they will not get back when back button of the browser is clicked.
    Is there any way for that?
    I also want to know if the back button can be disabled.
    thanks in advance
    vakvarma

    Eh, What's happening to this forum. I read the thread, and clicked back, and got this:
    alTextPo 2000 sition)); else  setUI(new CloseableTabbedPaneUI(horizontalTextPosition)); }   /** * Allows setting own closeicons. * @param normal the normal closeicon * @param hoover the closeicon when the mouse is over * @param pressed the closeicon when the mouse is pressed */  public void setCloseIcons(Icon normal, Icon hoover, Icon pressed) {  normalCloseIcon = normal; hooverCloseIcon = hoover; pressedCloseIcon = pressed; }   /** * Adds a <code>Component</code> represented by a title and no icon. * @param title the title to be displayed in this tab * @param component the component to be displayed when this tab is clicked */  public void addTab(String title, Component component) {

  • What happened to the drop down menu for the back button in Firefox 4?

    There used to be an arrow that allowed me to go back a few pages which seems to be missing in Firefox 4. Please bring it back.

    You can also get the drop-down list by holding down the left button until the list appears.

  • Send Request to servlet every time with the back button

    Hi,
    We are designing a web site in which all the pages are dynamic depending on what he does with his ordering system. Problem is when the uers request a change to the orders (eg deletes) the page is generated again. But the user can use the back button to see the deleted order.
    Question. Is there any way to send a request to the server everytime the back button is pressed.
    I have already added this to the top of my generated pages.
    response.setHeader("Cache-Control","no-cache"); // HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setHeader("Expires" , "0");
    I tried both the POST and GET request too.
    Any help would be appreciated.
    Thanks.

    This is an issue of never ending discussions. If you did a search for similar topics in this forum, you'd encounter various opinions including examples of suggested solutions.
    You can also see various real life behaviors on various real web sites.
    Personally, I don't want to put too much effort in disabling the back button. The back button is a mere display of the previous page and not the state of the application. As a user I like websites which do not mess with the browsers back button and let me see what I did on the previous page.
    If the user tries to do something with this deleted order, you should be able to track that and display a suitable error message.
    BTW, those headers do not have any effect on browsers back button. They merely control caching of pages.

  • Does anybody know how to fix the back buttons?

    The back button in the browser doesn't seem to be working in my JSP page by default. Is there a code(JS or anything) I need to place in the JSP file to make the back button work?

    Hi Onamika,
    The back button in the browser doesn't seem to be working in my JSP page by default !!
    Did u disable the back button using Javascript in any of ur JSP codes in the previous pages ? If u did so, please re-enable it using Javascript again.
    If u mistakenly opened some site that has disabled ur browser's back button, then probably the only way to retrieve it back is to shut down IE, then restart ur system and then re-open that website again....but make sure not 2 go 2 that page that disabled the button.
    Hope this helps.
    Cheers !!
    Sherbir.

  • Disabling of back button in Oaf

    How to diasble the functionality of back button present in Internet explorer?
    Thanks in advance

    You cannot disable the back button functionality, but can handle the back button clicks on your page.
    Please check pageContext.isBackNavigationFired() method. Accordingly there is a class called TransactionUnitHelper which can be used to identify the sequencing of the back button and a decision made accordingly whether you want to continue with the page functionality or show a Stale data page.
    Regards
    Sumit

  • Deactivate the back button when i logout

    I am creating webpage with login / logout. How to deactivate the back button when i logout. and clear cookies

    There is a hard fix for this...but i don't whether this is a current approach..
    Put the javascript in the head of the page
    history.go(1);
    This virtually disables the back button..i.e when you click the back button it immediately redirects to the present page..

  • When i hit the back button, the web page can not reload ! and this button is disable ! I'm using Ubuntu 10.04 Lucid ! and I've just upgrade to firefox 4 RC. Sorry for my poor English skill !

    When i hit the back button, the web page can not reload ! and this button is disable ! I'm using Ubuntu 10.04 Lucid ! and I've just upgrade to firefox 4 RC. Sorry for my poor English skill !

    In Firefox 23 versions and later the keyword.URL pref is no longer supported and it is no longer possible to specify the search engine for the location bar via the keyword.URL pref.<br />
    The search engine that is used on the location bar and on the about:home page is the search engine that is selected in the search Bar on the Navigation Toolbar.<br />
    Current Firefox versions do not update the about:home home page until you refresh the page (future versions will do this automatically without a refresh) and that is what happens if you use the Back key.
    You can install the Keyword Search extension to specify with search engine to use for the location bar and which search engine to use for the about:home page via the Options/Preferences windows of this extension, accessible via the about:addons page.
    * Keyword Search: https://addons.mozilla.org/firefox/addon/keyword-search/

  • Only in Firefox, a button on my web page is disabled after going to a page, then back using the back button.

    I have a web application that contains a physicians search page:
    http://www.hshsmedicalgroup.com/SearchPhysician.aspx
    I do the following:
    Select "find a physician"
    Type "Smith"
    Press "search"
    Select Smith entry
    Press "back" on browser
    "search" button is now disabled
    Only happens when you get back using the Back button.
    This doesn't happen in I.E. or Chrome.
    I see the issue in Firefox 3.6.13, 4.0 and 4.01.
    OS: Windows XP, Windows 7 and Mac.

    I would suspect a slightly incompatible addon of causing that to happen.
    Do you have that problem when running in the Firefox SafeMode?<br/> ''A troubleshooting mode.''<br />
    You can open the Firefox 4.0 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut. Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut to open it again.''
    If not, see this: <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • When I open a second Firefox browser window, the URL address window, instead of showing the URL, says "Go to a Web Site;" also, and more importantly, the "back" button is greyed out. This is a new problem, and the first Firefox window I open works fine.

    After I open the first Firefox browser window, any additional window I open does not open my homepage, but opens a blank page with "New Tab" showing on the tab. An orange "Firefox" tab with a drop down arrow shows at the upper left hand corner of the screen. All of the options (File, Edit, etc.) are greyed out, however they will work if you move your cursor over them.
    The URL address window says "Go to a Web Site". After I've gone to a website, the back button remains greyed out and I am not able to go back to a previous page. My RoboForm and Netcraft toolbars only show up in an abbreviate form. The add-on bar doesn't show up at all.
    Again, this is a recent problem, and only happens after I've opened one browser window (which works fine) and then open additional browser windows (as few as one additional).

    I had this same problem. Seems to be caused by the web developer tool bar FF extension (this started happening after a recent update to that extension). After disabling it, my FF is back to normal :)

  • The back button no longer works. I have disabled all add-ons, rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    the back button no longer works. I have disabled all add-ons,rebooted & reset the defaults for the browser and nothing has changed. This happens on all webpages.How do I get the back button to light up again?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    *Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    Another possible cause is a problem with the file places.sqlite that stores the bookmarks and the history.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    *https://support.mozilla.com/kb/Bookmarks+not+saved#w_places-database-file

  • Firefox was a good, but now it's slow and when I search google I have to refresh the page when I click the back button. This is driving me to other browsers.

    When searching in goole, If I click on a link and want to go back a page firefox does not load the previous google search without refreshing the page. Because I use google frequently this is very annoying. Firefox has also been freezing and crashing most frequently of any of the other browsers that I have been driven to use. I'm not sure why I should keep it on my computer at this point.

    Regarding the Google results page blanking out when you go back, this occurs when using a combination of three settings, which may be fairly common:
    * Zoom level higher than two steps (120%; the newest versions of Windows apparently default to 125%, which Firefox detects and adopts)
    * Google search set to instant prediction results (default on Google search, but can be disabled in Search settings, see [https://support.google.com/websearch/answer/186610 Google Instant Search Help])
    * Opening results in the same tab, then using the Back button to return to the results page (default on Google search, but can be changed in Search settings to open results in a new window/tab, see [https://support.google.com/websearch/answer/425 Google Search Help])
    Firefox's cache feature attempts to maximize speed for forward and back actions by storing the last rendering of the page. Something about the instant prediction results ''with zoom'' is causing Firefox to briefly display the results and then they blank out and you have to reload the page to get them back. The mystery is why this only occurs (so far as I have heard) on Google? Is one of Google's scripts blanking out the page? Does Google care that it's messing up Firefox users?
    For now, if you do not want to or cannot change any one of the three factors needed to experience this problem, you can disable the storage of the last rendering of the page. Then Firefox will skip the shortcut and lay it out fresh, which is known to work. As noted in earlier posts, you make this change using the about:config preferences editor.
    (1) In a new tab, type or paste '''about:config''' in the address bar and press Enter. Click the button promising to be careful.
    (2) In the search box above the list, type or paste '''sess''' and pause while the list is filtered.
    (3) Double-click the '''browser.sessionhistory.max_total_viewers''' preference and change it to 0 (that's a zero).
    This thread has a lengthy discussion: [https://support.mozilla.org/en-US/questions/970863 When I go back to Google search results page, it takes me to a blank Google screen].

Maybe you are looking for

  • Upgrading from Tiger to SL or ML

    Hello all!  I have an old aluminium body MBP 17" Intel Core2Duo 2.4 GHZ with 2 GB of Ram. It has a 160 GB drive and is a 3,1 model bought around august / sept. 2007. Call me slow but I haven't upgraded my OS since I bought the machine. I'm still runn

  • Alsa Cannot Use 5.1 channel

    Hi. I have tried a lot of different .asoundrc files but nothing of them worked. Here is the last one pcm.!default { type plug slave.pcm "surround51" slave.channels 6 route_policy duplicate also here is the result of aplay -L null Discard all samples

  • Chain of Responsibility Design Pattern

    Is there any java api which helps in implementing Chain of Responsibility Design pattern by parsing a XML file?. Can I use XML file to do this in Apache Commons Chain API?

  • Urgent error - unable to find certs file

    Hi , I am new to SSL programming I have the following code and getting the error ====================================================== IO Exception java.io.FileNotFoundException: certs (The system cannot find the file specified) Unable to listen on

  • Photoshop to Illustrator color shifting

    First off, I have my Photoshop CS2 and Illustrator CS color preferences set exactly the same in both programs so the color should be consistent from one to the other. However, lately the colors are giving me huge hassles! In Photoshop CS2, I create C