Hi,
Here is the request and response transaction that should
have (I think) returned a 304 Not Modified. Previous to this
request/response, I had already requested the resource and verified that it was,
in fact, in the cache on disk...
GET /comm/include/stock/stock.css HTTP/1.1
Host: my.web.server
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
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
If-Modified-Since: Wed, 07 Jul 2004 05:55:54 GMT
If-None-Match: "8e156f37-1-0-2eef"
Host: my.web.server
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040206 Firefox/0.8
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,*/*;q=0.1
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
If-Modified-Since: Wed, 07 Jul 2004 05:55:54 GMT
If-None-Match: "8e156f37-1-0-2eef"
HTTP/1.1 200 OK
Date: Wed, 08 Sep 2004 21:38:31 GMT
Server: Apache/2.0.50 (Unix) mod_ssl/2.0.50 OpenSSL/0.9.7d
Etag: "8e156f37-1-0-2eef"
Accept-ranges: bytes
Content-length: 12015
Last-Modified: Wed, 07 Jul 2004 05:55:54 GMT
Content-Type: text/css
Age: 3286
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Date: Wed, 08 Sep 2004 21:38:31 GMT
Server: Apache/2.0.50 (Unix) mod_ssl/2.0.50 OpenSSL/0.9.7d
Etag: "8e156f37-1-0-2eef"
Accept-ranges: bytes
Content-length: 12015
Last-Modified: Wed, 07 Jul 2004 05:55:54 GMT
Content-Type: text/css
Age: 3286
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
From: Michael Corcoran [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 08, 2004 2:52 PM
To: [EMAIL PROTECTED]
Subject: mod_cache does not return a 304 Not Modified
Hello,
I may be missing
something in my Apache configuration, or maybe this is a well-known
problem....But, I can't seem to get mod_cache (with mod_proxy and
mod_disk_cache) to return a 304 Not Modified response even when all of the
headers of the in the HTTP request should produce a 304 response. (of
course, I can get a 304 Not Modified response IF I include a "Cache-Control:
max-age=0" header, but the 304 response in that case is actually from the origin
server, not from Apache).
I've looked at the
code a little bit (Apache 2.0.50), and at first glance, it seems as though
proper 304 response handling might not actually be fully implemented yet.
Is that actually the case, or am I just missing something.
Thanks,
Mike.