On 11/4/05, Braun, James F <[EMAIL PROTECTED]> wrote:
> I need to force no page caching and I (vaguely) remember a configuration
> parameter that would do this. However, I looked in the wiki but didn't
> find anything on this. Can anybody shed any light?
>
> Thanks, J.

<controller nocache="true" /> if you want to set it for every response.

 Alternatively, you can set cache-control headers for responses that
you need in an action class:

response.setHeader("Pragma", "No-cache");
response.setHeader("Cache-Control", "no-cache,no-store,max-age=0");
response.setDateHeader("Expires", 1);

Note: if you use Opera and navigate back and forward, it does not
reload page even if it marked with "no-store". MSIE and Mozilla do
reload such a page.

Michael.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to