Is it a normal behavior that with following http headers the document is registered in cache in Firefox. I thought from rfc2616 section 14.9.3 that header Cache-Control: max-age=3600 would have override header Expires: 0
---- begin-excerpts ---- If a response includes both an Expires header and a max-age directive, the max-age directive overrides the Expires header, even if the Expires header is more restrictive. This rule allows an origin server to provide, for a given response, a longer expiration time to an HTTP/1.1 (or later) cache than to an HTTP/1.0 cache. This might be useful if certain HTTP/1.0 caches improperly calculate ages or expiration times, perhaps due to desynchronized clocks. ---- end-excerpts ---- Am I wrong or is it a bug in mozilla netlib? The expires directive seems to override max-age directive in mozilla netlib. http headers : GET /document.js HTTP/1.1 Host: localhost User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7) Gecko/20040614 Firefox/0.9 Accept: */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost/document.html Cookie: JSESSIONID=F58B659D15476362BA5D1CA7E1C58CF5 If-Modified-Since: Wed, 05 Jan 2005 16:41:06 GMT If-None-Match: W/"3533-1104943266000" Cache-Control: max-age=0 HTTP/1.x 304 Non Modifié X-Powered-By: Servlet/2.4 Cache-Control: max-age=3600 Expires: 0 P3P: policyref="http://vpn.korem.com:82/PUSHnSEE471/w3c/p3p.xml", CP="ALL DSP CURa ADMa DEVa TAIa OUR BUS IND UNI COM NAV INT" Date: Fri, 14 Jan 2005 20:07:22 GMT Server: Apache-Coyote/1.1 Cache entry : Key: http://localhost/document.js Data size: 3097 bytes Fetch count: 2 Last modified: 01/14/05 15:04:10 Expires: 12/31/69 19:00:00 Christian. _______________________________________________ Mozilla-netlib mailing list Mozilla-netlib@mozilla.org http://mail.mozilla.org/listinfo/mozilla-netlib