0 Replies Latest reply on Jan 26, 2003 1:30 PM by Olga Agady

    Turning off browser caching doesn't work

    Olga Agady Newbie


      I am sorry I ask my question on JBOSS's forum even thought it is not about JBOSS, but I can not find an answer anywhere.

      I need to turn off browser caching for a couple of pages in my web-application. First I tried to do this with setting the headers:

      response.setHeader("pragma", "no-cache");
      response.setHeader("cache-control", "no");
      response.setHeader("expires", "0");

      I am testing the application in IE 6.0. It doesn't work. I also tried to add meta tags:

      <META http-equiv="Content-Style-Type" content="text/css">
      <META Http-Equiv="Pragma" Content="no-cache">
      <META Http-Equiv="Cache-Control" Content="no-cache">
      <META Http-Equiv="Expires" Content="0">

      Meta tags don't work as well. I found an article about a bug in IE regarding truning off caching. The author suggested to add meta tags to the end of the HTML file as well and did this:

      <META Http-Equiv="Pragma" Content="no-cache">
      <META Http-Equiv="Expires" Content="0">

      Still it doesn't work.

      Did someone managed to turn off caching in IE?