Discussions

Web tier: servlets, JSP, Web frameworks: caching problem

  1. caching problem (3 messages)

    we are using oc4j container(v 1.0.2.2.1)
    when many users use this application one user sees the
    other user data..
    we have included the foll code in the jsp

    <%

    response.setHeader("Cache-Control","no-store"); //HTTP 1.1
        response.setHeader("Pragma","no-cache"); //HTTP 1.0
        response.setDateHeader ("Expires", 0); //prevents caching at the proxy server

    %>

    <meta http-equiv="expires" content=<%= new java.util.Date() %>>
    <meta http-equiv="no-cache">

    The browser is IE 5.0

    Please can anyone help us??

    Threaded Messages (3)

  2. caching problem[ Go to top ]

    hi,

    Just as a another line of debugging, check if

    session management is ok
    application level caching

    hope that helps,

    Bhagvan K
    http://www.architectcorner.com
  3. caching problem[ Go to top ]

    You might try
    "Cache-Control","no-cache, must-revalidate"
    also
  4. caching problem[ Go to top ]

    we are using oc4j container(v 1.0.2.2.1)when many users use this application one user sees the other user data..we have included the foll code in the jsp<% response.setHeader("Cache-Control","no-store"); //HTTP 1.1    response.setHeader("Pragma","no-cache"); //HTTP 1.0    response.setDateHeader ("Expires", 0); //prevents caching at the proxy server%><meta http-equiv="expires" content=<%= new java.util.Date() %>><meta http-equiv="no-cache">The browser is IE 5.0Please can anyone help us??
    Are you using a proxy? I seen this before when using a proxy. We had to set the options in the browser Tools\Internet Options. Look under the General Tab in the Temporary Internet Files section. Click on the Settings button and set it to "Every Visit to the Page".