|
Fwd: Any reason to overwrite Response Header in XMLCContext ?: msg#00064java.enhydra.xmlc
--------------------------------------------------------------------------------------------------------- Subject: Any reason to overwrite Response Header in XMLCContext ? Date: Tue, 24 Dec 2002 12:31:58 -0500 From: "Zhihai Li" <Zhihai.Li@xxxxxxxxxx> To: <xmlc@xxxxxxxxxxx> In XMLCContext (v 1.4) private void outputHeaders(HttpServletResponse response, int docLength, String mimeEncoding, String mimeType, boolean compressed) ... // Disable caching of page unless otherwise specified. if (response.containsHeader("Cache-Control")) { response.setHeader("Cache-Control", "no-cache"); } if (response.containsHeader("Expires")) { response.setHeader("Expires", "0"); } ... Is there any reason to just check if you set Expires header or not , set it to 0. but not use the original value. We have the server site caching problem for the Resin 2.x version . since Resin expecting a default value on this header, if this value was overwrited , Resin will caculate wrong expiration date from server site, so the page get requested will never expired from the sever side. Is this the Resin bug or the XMLC bug, if it is a bug ? Thanks . --------------------------------------------------------------------------------------------------------- -- Mathieu Peltier INRIA Rhône-Alpes - ObjectWeb Consortium http://www.inrialpes.fr/ - http://www.objectweb.org/ Computer programmers do it byte by byte.
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: XSL-FO DOM, Jacob Kjome |
|---|---|
| Next by Date: | Re: Fwd: Any reason to overwrite Response Header in XMLCContext ?, David Li |
| Previous by Thread: | XSL-FO DOM, Alfred Madl |
| Next by Thread: | Re: Fwd: Any reason to overwrite Response Header in XMLCContext ?, David Li |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |