cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tagunov Anthony" <atagu...@nnt.ru>
Subject Re: [C1,C2][feature request][response.setHeader["Expires","Thu, 01 Dec 1994 16:0
Date Thu, 25 Jan 2001 12:56:55 GMT
On Thu, 25 Jan 2001 12:16:12 -0000, Robin Green wrote:

>"Tagunov Anthony" <atagunov@nnt.ru> wrote:
>>You all look so bussy, but I still would like to try to submit an idea of a 
>>feature
>>that we and maybe lots of other people need badly.
>>
>>The thing is we have a section
>>
>>
>><xsp:logic>
>>		response.setHeader("Pragma","no-cache");
>>		response.setHeader("Cache-Control","no-cache");
>>		response.setHeader("Expires","Thu, 01 Dec 1994 16:00:00 GMT");
>></xsp:logic>
>>
>>in half of our xsp pages. (The variety of options there is to make sure
>>that as many browsers as possible won't cache our page.)
>>
>>Maybe some facility for doing this should be provided somewhere?
>
>Is it really necessary? I was under the impression that not supplying a HTTP 
>Last-Modified header was enough (but I suppose this is probably not 
>HTTP-conformant).

My experiments clearly and undoubtfully showes that when I have the following set of headers


HTTP/1.0 200 OK
Date: Thu, 25 Jan 2001 12:43:34 GMT
Server: Apache/1.3.14 (Unix) ApacheJServ/1.1.2 mod_perl/1.24_01 mod_ssl/2.7.1 OpenSSL/0.9.5a
Servlet-Engine: Tomcat Web Server/3.2 beta 7 (JSP 1.1; Servlet 2.2; Java 1.3.0; Linux 2.2.16-3.db
x86; java.vendor=IBM Corporation)
Content-Type: text/html; charset=Cp1251

(no LastModified) the caching both with IE 5.00.2314.1003 and IE 5.50.3823.1300 the caching
happens!
(I'm running under some NT 4.0)

>>C1: In the request taglib? In some processor (if we do not want xsp)
>
>You can already do it in the stylesheet with HTML meta "http-equiv" tags.
>
Aren't HTTP headers much more reliable?

Best regards,
 Tagunov Anthony




Mime
View raw message