Did you try also adding a meta tag
<meta http-equiv="cache-control" content="no-store">

I have the following four headers set on my response and my application
behaves as expected..

   response.setHeader("Cache-Control","no-cache");
   response.setHeader("Cache-Control","no-store");
   response.setDateHeader("Expires", 0);
   response.setHeader("Pragma","no-cache");

Thanks.

On 1/9/07, Robert Einsle <[EMAIL PROTECTED]> wrote:

Hy List,

strange Things are happend. I have an smal application, manage an
Database-Table via an JSF-Web-Frontend. At the beginning of the
Application, there is an Login-Dialog, and the i see the Table, with the
Posibility to add end edit Data.

Normaly, i start my Web-Browser, linking to the Page, write on my
Username and my Password, and then i can Work. After an amount of time
doing nothing, i should relogin the Web-Application.

But, when go to that page, sometimes the Browser shows me the content of
the Application, but normaly it should call the Login-Dialog. But after
one Action, it shows the Dialog. I thinks, the Browser caches me the Page.

At the start of the Pages there ist:

--- cut ---
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
--- cut ---

Does anybody has an idea whats wrong?

Environment is Tomcat 5.5, MyFaces 1.1.3 or 1.1.5, Tomahawk 1.1.4 or
1.1.5, Java 5.0.10 on Linux Ubuntu. Webbrowser is Firefox or IE 6

Robert

Reply via email to