0 Replies Latest reply on Nov 30, 2006 7:18 AM by Purna chand

    disabling proxy caching in jsp

    Purna chand Newbie

      Hi,

      I am facing problem due to proxy caching. I am using jboss portal 4.0.2 with myfaces.

      My problem is, Proxy server is caching the request and response for the main url. When i given that url, it should send me to login page. But, for the first user it is sending to login page and for other users, it is sending the response which has been got recently for the first request.

      So i want to disable the proxy caching mechanism. How can i do it in my code? Or how can i configure jboss to give the response which cant be cached?

      I have tried various HTTPHeaders in my jsp page.

       response.setHeader("Cache-Control","no-cache");
       response.setHeader("Cache-Control","no-store");
       response.setHeader("Cache-Control","max-age=0");
       response.setHeader("Pragma","no-cache");
       response.setHeader("Cache-Control","private");
       response.setHeader("Cache-Control","proxy-revalidate");
      
      


      Plz reply if anyone knows..

      thanks in advance...