1- Does someone know precisely what headers are added to HTTP responses when
adding the following to the controller element of the struts-config file ?

<set-property property="nocache" value="true"/>

2- I am currently using the following to disable user-agent cache inside of
my Struts Actions. Does anyone know if the solution mentionned in (1) is
better than the solution I am using ?
// Set to expire far in the past.

response.setHeader("Expires", "-1");

// Set standard HTTP/1.1 no-cache headers.

response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");

// Set IE extended HTTP/1.1 no-cache headers (use addHeader).

response.addHeader("Cache-Control", "post-check=0, pre-check=0");

// Set standard HTTP/1.0 no-cache header.

response.setHeader("Pragma", "no-cache");


Sylvain



----- Original Message -----
From: "Fullam, Jonathan" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, December 10, 2003 11:34 AM
Subject: RE: Tag for adding no-cache header.


> Setting the nocache in the web.xml has actually been deprecated.  A better
> solution for you is to set the nocache header as an attribute inside the
> controller element of you struts-config file.
>
> -Jonathan


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

Reply via email to