httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Ames <>
Subject Expires: header prevents caching
Date Tue, 22 Jan 2002 15:59:30 GMT
I tested the URL that Andrzej mentions below.  Sho 'nuf, the value of the
Expires: headers we send is exactly the same as the value of the Date: header. 
RFC 2616 says the content can't be cached by proxies in this case.

[gregames@gandalf gregames]$ runsocks nc 80
HEAD /docs/mod/core.html HTTP/1.0
HTTP/1.1 200 OK
Date: Tue, 22 Jan 2002 15:34:16 GMT
Server: Apache/2.0.29 (Unix)
Content-Location: core.html.en
Vary: negotiate,accept-language
TCN: choice
Accept-Ranges: bytes
Connection: close
Content-Type: text/html
Content-Language: en
Expires: Tue, 22 Jan 2002 15:34:16 GMT

but for many other URLs, we don't bother with the Expires: header

[gregames@gandalf gregames]$ runsocks nc 80
HEAD /index.html HTTP/1.0
HTTP/1.1 200 OK
Date: Tue, 22 Jan 2002 15:44:37 GMT
Server: Apache/2.0.29 (Unix)
Accept-Ranges: bytes
Content-Length: 6139
Connection: close
Content-Type: text/html

Does anyone understand the care and feeding of Expires: headers in Apache? 
Seems like it would be in our best interest to allow caching for most/all static

-------- Original Message --------
Subject: Two things (fwd)
Date: Mon, 21 Jan 2002 09:39:05 -0800 (PST)
From: Brian Behlendorf <>
To:, <>

Notice the 2nd issue.


---------- Forwarded message ----------
Date: Mon, 21 Jan 2002 12:55:17 +0100
From: Andrzej Kukula <>
Subject: Two things


I've got just two annoying things:

1. On, there's no mention on a general
contact concerning the Web Page, so I'm sending this message to well-known

2. (Far more important) transmits the same Date: and
Expires: HTTP headers, thus making squid unable to cache your pages. I've
tested it with

Andrzej KukuĀ³a

View raw message