struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dariusz Wojtas <>
Subject RE: Caching in IE
Date Fri, 19 Apr 2002 09:43:29 GMT
Don't know if it will help with newest IE, but it worked for me some time ago,
when I experienced similar problem.

    response.setHeader("Cache-Control","no-store, no-cache, 
must-revalidate, post-check=0, pre-check=0"); //HTTP 1.1
    response.setHeader("Pragma","no-cache"); //HTTP 1.0
    response.setDateHeader ("Expires", 0); //prevents caching at the proxy 

The first line sends extended header, specific to IE.
I found that some time ago on some PHP group.

         Dariusz Wojtas

At 03:36 2002-04-19 -0600, you wrote:
>Well, what I am looking for is simple. I want my pages to pass through the
>controller. But, when IE caches a page it brings up the cached page and
>completely bypasses the controler(Action). I have enabled the no-cache
>mechanism in struts. But, it still seems to happen. The only way I've been
>able to solve it is to change IE settings. That is not an option when a site
>goes live. Telling the public they have to change their browser settings
>won't do :-).
>Brandon Goodin

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message