If I remember correctly, I think the request processor did exactly what you did on 2. And I think (1) approach is better and it consistent with MVC. Just make sure that all of your request will go through the FrontController then all of your response will have it header set with no-cache.
--danny Danny Trieu Internet Business Group Downey Savings and Loan Association, F.A. [EMAIL PROTECTED] (949) 509-4564 "The beginning of knowledge is the discovery of something we do not understand." - Frank Herbert (1920-1986) "The essence of knowledge is, having it, to apply it; not having it, to confess your ignorance." - Confucius (551-479 BC) -----Original Message----- From: Sylvain Cliche [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 10, 2003 9:23 AM To: Struts Users Mailing List Subject: Re: Tag for adding no-cache header. 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] This message and any attachments are for the intended recipient(s) only and may contain privileged, confidential and/or proprietary information about Downey Savings or its customers, which Downey Savings does not intend to disclose to the public. If you received this message by mistake, please notify the sender by reply e-mail and delete the message and attachments. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

