Disable cache in IE adn Firefox using JSP

hi all
my requirement is,
i am in a page. request goes to the next page and when i press back the page session should expire.
i am using
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control","no-store"); //HTTP 1.1
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");          //HTTP 1.0
response.setHeader("Pragma","no-store");
which perfectly works in IE, but not in Mozilla. how do i disable the back button which should basically expire the session.
NO DISABLE OF BUTTON USING JAVASCRIPT
answer to this question r very much appreciated
regards
PraDheep

I think other users have had problems with GoDaddy site builder in the past, but I can't recall whether there was a solution.
In case one of your extensions is involved, could you test the editor in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
You can restart Firefox in Safe Mode using
Help > Restart with Add-ons Disabled ''(Flash and other plugins still run)''
In the dialog, click "Start in Safe Mode" (''not'' Reset)
Any difference?

Similar Messages

  • Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    Using Tiscali Webmail with Firefox 6. If I try and delete an email the Ok and Cancel buttons are disabled and nothing happens, have to use F5 to take me back. IE8 works so is this a compatibility issue?

    It appears OP solved the problem: [/questions/874744]

  • If Firefox 20 is in Private Browsing mode then a possible persona is disabled and the default theme is used - oh god, no - what can I do to keep both?

    Cor-el answered on the 4.4.13: " If Firefox 20 is in Private Browsing mode then a possible persona is disabled and the default theme is used. So you will have to make a choice."
    Can I go back to an older version of FF? I really do not want to choose. Will that problem be fixed in FF 21? I really love Firefox, it has always been my favorite browser - but giving up the Personas will be hard and I don't understand why I have to...
    How do I reinstall an older version of FF? Is there another solution?

    Remember to use the per window Private Browsing when you are doing banking or other confidential / financial work.
    One option is now
    * '''Firefox Button -> New Private Browsing Window'''
    * (Linux / xp File -> New Private Browsing Window)
    * see [[Private Browsing - Browse the web without saving information about the sites you visit]]
    You may even benefit from saving your History.It improves the functionality of the location bar / ''awesome-bar ''
    *[[Awesome Bar - Find your bookmarks, history and tabs when you type in the address bar]]

  • Firefox uses too much cache when commenting in Facebook - 45MB when the text is only 1kB - why?

    Firefox uses too much cache when commenting in Facebook. I wrote a comment up to 1000 characters and my PC crawled. I had to wait several times for the text to catch up with my typing. I cleared caches after entering my comment and it freed up 45MB of RAM from the firefox.exe process in Windows Task Manager. Why does Firefox use 45MB when the text is only 1kB?
    Another time the firefox.exe process began at 88MB and went up to 250MB whilst writing a comment, reducing to 170MB afterwards. Firefox hogs the CPU too (I tried the CPU hogging tips but none was the solution to this), but the memory usage is the issue because the CPU would not be hogged if less data was being moved or cached.
    I accept some slowness on an old 1.2GHz 512MB PC but the facebook issue is much worse than other sites.

    Dheart wrote:
    signor_rossi wrote:
    schivmeister wrote:this is a flash issue
    Of course it is, but there isn't much we can do about it, isn't it? Therefore I suggested firefox3, to alleviate things a little (it does it for me). Flash doesn't even work at all for me in Opera, I only get a grey window where the video should be.
    Bye, signor_rossi.
    The newest version of flash Plugin only works with Opera 9.5 beta. If you want to use flash with the stable Opera find an older version of the flash plug in.
    Thanks for the hint, will keep that in mind in the case I will switch to Opera again (used it for a while because Firefox2 scrolling was bad, with 3 it is much better). Besides, there is a new flash version in the repos.
    Bye, signor_rossi.

  • Stop web page caching in mozilla using jsp

    Hi,
    Is there any way to stop the web page caching in mozilla by using jsp code?
    When the user presses the logout button i do not want them to be able to press the back button.
    Thanks.

    Expire your pages (set proper headers and cache controls that apply to both browser and proxy servers) and code it so that every page with data you don't want displayed doesn't display unless someone is logged in.
    Note that there is never a 100% guarantee that the browser won't cache the pages. It's really up to the user agent (and any proxies, if applicable) to agree to follow the no-cache REQUEST.
    For this reason, any database interactions (that is, inserts and updates) should always check for a valid session before executing.
    Using POST to submit requests to pages that do database interaction is also helpful, so when they hit the back button, they'll see that warning about the page being generated from POST data.
    If the data is horribly sensitive (financials, etc that you don't want left open on a screen), don't give them a chance to use the back button. Open the application itself in a brand new window (a login page will open the new window), do all interaction in that window, and logging out closes the child window (and thus loses all history).
    Since this may irritate the holy heck out of the casual user (or just plain not work with popup blockers) it is not recommended to be used casually.
    Keep this reserved for very sensitive applications, not just the average web site / application or because you don't feel like coding proper safeguards.
    HTH

  • Image cache not working with Firefox and apex

    Hi,
    I'd like to cache all my images to save page rendering time and bandwidth because my images are all static and never change.
    I use the John Scott's caching technique Link: [http://jes.blogs.shellprompt.net/2007/05/18/apex-delivering-pages-in-3-seconds-or-less/], in a few words this technique consists of adding a header line "Expires: date in the future" in the http response.
    It works very well in IE, the images are cached and the same image can be accessed several times (within the same session or in different sessions) without issuing an http request to the server each time.
    with Firefox it does not work, the same image is asked again and again to the server (i'm using FF 3.5 and APEX 3.2).
    - Is it a date format problem? no, because when i type about:cache in FF, i can find my image in the cache with an expire date in the future.
    The weird thing here is that the counter is incremented each time u request the image, so FF knows it is in the cache and even if the expire date is in the future, FF asks it again to the server.
    - Is it a FF bug? If u read the http specs or if u google a little, u can come to the conclusion that FF does not follow the standards,
    but... images.google.com for example manages to get its images cached with FF.
    They use an http response header "cache-control: public, max-age=604800".
    I tried the same and all kinds of combinations but without success.
    When i compare my image with the one from google in the FF cache, they both have the same attributes.
    - It's not an apex issue neither because it works with IE, most probably an incompatibility between apex and FF?
    Maybe the use of cookie? or the http request (not the response) containing "cache-control: max-age=0"?
    I've found so far 2 half solutions:
    1) use ETag and modified date, see the Tyler Muth's note Link: [http://tylermuth.wordpress.com/2008/02/04/image-caching-in-plsql-applications/].
    with this technique FF continues to send request each time but the answer is shorter because it's just a "304 not modified" instead of "200 OK" (200 response is bigger as it contains the image).
    it's better than nothing but you still have 1 request + 1 response for nothing.
    Another problem is that you need SYS access to implement this, which is not possible on an hosted server. (note that for images from the file system it is already foreseen by apex 3.1, Tyler's note is for images from the db)
    2) if you preload the image (using myimage=new Image();myimage.src='...';), then there is max 1 request per browser session.
    There are 2 minor issues here:
    - no caching across sessions
    - if u don't want to preload all the images (example a page with lots of thumbnails, when user clicks it show a bigger image, in that case the thumbnails can be preloaded but overkill for the big images), then you need to load the image, wait until the image has loaded before displaying it, it does not slow down the execution, but requires some extra JS.
    I'm not asking anyone to investigate it, i can live with the 2 workarounds,
    but just in case someone encountered the same problem and already fixed it.
    Let me know if u managed to use the John Scott's technique with Firefox. (U can use Firebug to see the http traffic)
    Thx
    Tim

    Hi Anshul, hope these help. Let me know if you need to see anything else.
    Best,
    Menu Settings:
    Tab Hyperlink:
    Label Text with with hyper link option not available (works as a hyperlink in chrome and IE though):
    Thanks for the help in advance!

  • Plz help.  How disable caching SQLJ statement  on WebLogic server 10.3?

    Plz help.
    How disable caching statement by SQLJ on WebLogic server?
    what the actual problem:
    1. create or replace view vtest as select object_name from dba_objects where rownum<200
    2. test.sqlj
      #sql dx testIterator = {
         select object_name from vtest
       int cnt=0;
       while( testIterator.next() ){
         cnt++;
       System.out.println("Count: "+cnt);
    3. Restart WebLogic and deploy project
    4. Run test on server, in log file
    "*Count: 199*"
    5. create or replace view vtest as select object_name from dba_objects where rownum<10
    6. Run test on server, in log file
    "*Count: 199*"
    7. Restart WebLogic
    8. Run test on server, in log file
    "*Count: 9*"

    Hi bud,
    Have you tried using WLST for what you are trying to achieve?
    Please take a look at the following links:
    http://docs.oracle.com/cd/E11035_01/wls100/config_scripting/domains.html
    http://docs.oracle.com/cd/E13222_01/wls/docs91/config_scripting/domains.html
    http://docs.oracle.com/cd/E13179_01/common/docs21/interm/config.html
    Hope this helps.
    Thanks,
    Cris

  • Disabling cache usage in IE by java(this is really very important and urgen

    Hi,
    i would like to know if it is possible to disable cache memory(tempinternetfile) for IE.
    Since my jsp pages have the meta tag <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> some of the pages are being stored in temporary internet files folder and being called from there and this cause really big problems since all the data has to come from database,
    they just came from cache and none of the changes are being displayed.
    Thanks

    Try add page expire date:
    <META HTTP-EQUIV="expires" CONTENT="Fri, 31 Dec 2001 23:59:59 GMT">

  • Diasble Address/Menu Bars of a Browser using JSP

    HI,
    Is there a way to disable or hide Menu Bar/Address Bar of a Browser i.e. Internet Explorer and Netscape using JSP. Don't want to use Javascript as what if JavaScript is disabled in the browser. Can someone please help me how to hide the Browser Bars using JSP.
    Thanks

    Can't be done. JSP is SERVER-SIDE execution, not CLIENT-SIDE.
    JavaScript is your only bet here. If it is VITALLY important to you, have your main window launch another window using JavaScript. If javaScript is disabled, post a little warning that JavaScript must be enabled to use this site.

  • How to detect Browser using JSP ?

    Hi friends,
    I wanna to put some code to detect browser and
    Other than IE6+ i have to block other browser to display login.
    How do i check that ? Using JSP.
    e.g.
    If i open IE6+ login page should be displayed. Else on other browsers
    it will check brower and deny to display login page.
    How Do i check it ? please Help me.

    this code works for me in IE,Safari and firefox but i could not check in netscape as i dont have.
    String userAgent = request.getHeader("User-Agent");
          System.out.println("UserAgent:"+userAgent);
          userAgent=userAgent.toLowerCase(); //convert to lowercase and then check
          if(userAgent.indexOf("netscape6") != -1)
         System.out.println("Netscape");
          else if(userAgent.indexOf("msie") != -1)
              System.out.println("IE");
         else if(userAgent.indexOf("firefox") != -1)
         System.out.println("Firefox");
         else if(userAgent.indexOf("safari") != -1)
         System.out.println("Safari");
         else
              System.out.println("Else");
        

  • Display binary data from DB in browser using JSP

    Hello everyone:
    I uploaded some files from browser and stored the files in bytes in the database, but later on I could not display the files in browser without saving them to a local storage first. Is there any way I can send the bytes to the browser in the right format using JSP?
    I tried the following:
    response.setContentType(..)
    response.getOutputStream().write(bytes);
    I can see that the browser can get the right contentType, but with a bunch of weird symbols in the browser. Please help.
    Thank you very much for your time.
    Heather

    I actually had to do this a few months ago. There are ways to perform this kind display using various distributed object (i.e., using MS Word OLE objects to "interpret" the byte for you, etc.). But this soon got extremely difficult to manage (and I actually had to use Perl/CGI for the majority of it).
    The solution I went with was to implement a "cache" directory on the web server. Basically, the JSP/Servlet can simply check the cache and if file not there, create it from the database. Then send a redirect back to the browser to this newly-created file. The browser will then appropriately open the document. I tested this with both Netscape and IE browsers and common MIME types such as text files, MS Office docs, zip files, PDFs, RTFs.
    Not ideal, but unfortunately the best I came up with.

  • How to Disable caching of all SSL pages?

    May anyone can help me, how to Disable caching of all SSL pages in an web application?
    Thanks in advance.
    Balamurugan.K

    sabre150 wrote:
    kajbj wrote:
    It doesn't matter that you are using SSL if I understood your question correctly. I'm not certain but I think it does matter. As I understand it, no SSL/HTTPS pages should be cached since this could represent a security weakness. I was a bit vague. I meant that it doesn't matter what he is using under the hood since he isn't doing any "programming" if he's only serving pages. Everything should be related to configuring the server correctly, and/or using the correct header directives (not sure since I'm not a web developer)

  • How to use jsp:scriptlet in site template

    hi all,
    I want to use <jsp:scriptlet> in site template, but jdev showed me an error msg when I put <jsp:scriptlet> in site template:
    scriptlet can not work properly with OJSP, I checked the forums, one possible solution is to encapsulate java code in jsp taglib, but I dislike this solution.
    Is there a way to disable OJSP? or any solution to use java code in site template?
    Best regards

    I believe the official word is if you are trying to use java code in a scriptlet in your site template then you are doing something wrong.
    The goal is to keep java code separate from the template and pages. Any logic should go to your supporting serviece objects and all of your front-end work should be accomplished using available or custom tags.
    Can you describe what you are trying to accomplish with this java code in your template?

  • Firefox uses too much CPU when displaying flash sites

    When I have a site with flash and/or java open, firefox uses minimum 40% of my CPU power, even when I'm doing nothing, when firefox is idle and waiting for input.
    P.S. This could be a recent issue, probably related to the newest version of firefox, however I haven't tried downgrading it because I don't have the old version package in my cache. (cleaned it a while ago)

    Dheart wrote:
    signor_rossi wrote:
    schivmeister wrote:this is a flash issue
    Of course it is, but there isn't much we can do about it, isn't it? Therefore I suggested firefox3, to alleviate things a little (it does it for me). Flash doesn't even work at all for me in Opera, I only get a grey window where the video should be.
    Bye, signor_rossi.
    The newest version of flash Plugin only works with Opera 9.5 beta. If you want to use flash with the stable Opera find an older version of the flash plug in.
    Thanks for the hint, will keep that in mind in the case I will switch to Opera again (used it for a while because Firefox2 scrolling was bad, with 3 it is much better). Besides, there is a new flash version in the repos.
    Bye, signor_rossi.

  • Firefox uses too much CPU ff3.6.3 any HELP?

    Firefox uses way too much CPU. Running MAC OSX and ff 3.6.3 using "activity monitor" shows Firefox uses typically 96% of my CPU !!
    == This happened ==
    Every time Firefox opened
    == I noticed my computer was getting s- l -o w- e -r

    Hello Kr.
    This kind of issues are, unfortunately, more common and the we'd like. Thankfully, 99% of the cases are very easy to solve. However, you do need to diagnose what your exact problem is. Do this:
    #run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe-mode] to disable all extensions, themes and plugins. If this fixes your issues, be them with RAM or CPU usage, then you know it's a problem with plugins, themes or extensions. Proceed to number 2. If safe-mode doesn't fix the issues, then read bellow, after this list;
    #update all extensions, themes and plugins in your Firefox. If this doesn't solve the issues, proceed to the following number;
    #disable all extensions, themes and plugins in your Firefox (not running safe-mode). Being certain that, as in safe-mode, the problems you're having have gone away, enable one plugin at a time. You should be certain that you WANT that plugin to be enabled, so keep your overall number of plugins as low as possible. When you encounter the problems, you know you've found a problematic plugin, so disable it for good. Keep enabling all plugins (except problematic ones) until you've gone through them all.
    #enable one extension at a time. Again, be certain that you WANT that extension to be enabled, so keep your overall number of extensions as low as possible. Also, try the theme you want to have installed so see if that is what's causing the problem. When you encounter the problems, you know you've found a problematic extension/theme, so disable it for good. Keep enabling all your extensions (except problematic ones) until you've gone through them all;
    #you're done! You've fixed your problems with problematic add-ons. If you want to keep using those problematic add-ons, please contant their author for support.
    Ok, if disabling all extensions and plugins through safe-mode didn't work to bring Firefox's CPU and RAM usage to good levels, then you have different issue. The most likely scenario is that you have a third party software running on your computer that is messing with Firefox. Do as follows:
    #try reinstalling Firefox. No data will be lost. You can get the latest version for free at [http://www.getfirefox.com/ getfirefox.com]. If that doesn't fix the problem, proceed;
    #do a virus/malware check on your computer. If this doesn't fix it, proceed;
    #disable all software running in the background that you don't want to have running in the background (in windows, this is done by pressing WINDOWS+R in your keyboard, typing "msconfig" (without the commas) and pressing enter. Now, under the "Startup" tab, you can uncheck the software you don't want, and reboot your system for changes to take effect. If you're unsure of what software you want running, ask someone with more experience). If this doesn't fix your issues with Firefox, proceed;
    #check your firewall/antivirus/security suite for enabled functions/features that you don't want and/or may be conflicting with Firefox. You'll find that these features are most likely tied to Internet Security features, such as link scanners or URL checkers and the like. If you're not sure they are conflicting with Firefox, simply try to disable them to see whether or not that's true. As long as you don't browse the web with your antivirus completely off and your firewall completely turned off, there should be no problems. If this doesn't solve the issues, proceed to the following number;
    #check your operating system security options, mainly advanced options that are not configured by default. While it's very unlikely that this may be the cause of the problem (after all, it's the last item on the list), it's remotely possible. If this doesn't work, proceed to the following point;
    #update your modem/router software. There have been some reports that some modem/router software may cause Firefox and other browsers to loose performance and/or stability. If updating doesn't fix your issue, try other versions of the software, if possible. If you need support with this, contact your modem/router manufacturer. If this doesn't help, proceed;
    #clean up your OS registry, using appropriate software. Make sure you've followed my instructions correctly, but if this all doesn't work, [http://support.mozilla.com/en-US/kb/Managing+profiles create a new Firefox profile] (this can be temporary, of course) and see if the issues persist. Report here the results, so we can't help you further.

Maybe you are looking for

  • UK Pension Auto Enrolment: minimum contribution per month vs year

    Hi all, just interested to know how you are dealing with cases, where the pensionable pay doesn't include the same variable payments as the legal qualifying earnings do, but due to higher percentages or no lower limit, the minumim threshold is still

  • Reverse Sign in Business rule Parameter

    Hi Guys, Can anyone give me some scenario where we can use reverse sign in  the business rule (Checked). Why we change the sign of the account. Source Account                      Destination Account                        Reverse Sign 1030200000    

  • Scheduled Backup & Manual Backup not Inintiating for CM

    I am trying to do a Backup for CM. But it is not getting started it showd the error "Backup initiation timed out. Master agent might still be processing this operation or may be down.". I checked the DRF Master and Local services- it was up and runni

  • Firmware for 3Com Bluetooth PCMCIA card

    I've just recieved my new 3com pcmcia bluetooth card (3CRWB6096). According to google it was supposed to work with Linux. I think it will, but there's something about needing the windows firmware file- BT3CPCC.bin. I have said file, and have tried pu

  • Spotlight not doing so well with .pdfs

    I scan a lot of documents that come across my desk, using Acrobat Pro 8.1. But I'm finding that Spotlight isn't doing a very good job of recognizing text within those documents. I'll enter a search string from that document and it won't show up in Sp