Seems like you have something else weird going on. The config used on
www.apache.org is
ExpiresActive On
ExpiresDefault A86400
And yet I get updated (non-zero) cache-control headers on 304 responses:
telnet www.apache.org 80
Trying 192.87.106.226...
Connected to www.apache.org.
Escape character is '^]'.
GET / HTTP/1.1
Host: www.apache.org
If-Modified-Since: Thu, 01 Jun 2006 14:07:19 GMT
HTTP/1.1 304 Not Modified
Date: Tue, 06 Jun 2006 14:31:19 GMT
Server: Apache/2.2.0 (Unix) mod_ssl/2.2.0 OpenSSL/0.9.7g
ETag: "20122-331e-4152a2fa513c0"
Expires: Wed, 07 Jun 2006 14:31:19 GMT
Cache-Control: max-age=86400
So it looks like you have something else in your config that is
resetting your cache-control headers.
Joshua.
Ok, there are two things going on here, one of which I'll hang my head
in shame for :-(
Firstly, the correct Cache-Control header is sent for the initial 200
response on these files - so what would prevent it from being sent only
on 304 responses?
Secondly, the /Cache-Control max-age=0/ header I mentioned earlier is in
the REQUEST header, not the server's response header! Seems I can't read
properly!
To clarify, these are the request and response headers for an initial
request for an image and then a subsequent request where the image is
cached:
Host=www.highandwild.co.uk
User-Agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4)
Gecko/20060508 Firefox/1.5.0.4
Accept=image/png,*/*;q=0.5
Accept-Language=en,en-us;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://www.highandwild.co.uk/
Cookie=KMVisitor=10606061024500283146
Pragma=no-cache
Cache-Control=no-cache
Status=OK - 200
Date=Wed, 07 Jun 2006 08:10:57 GMT
Server=Apache/2.0.46 (Red Hat)
Last-Modified=Wed, 07 Jun 2006 08:05:00 GMT
Etag="85c0a2-f79-d2f28300"
Accept-Ranges=bytes
Content-Length=3961
Cache-Control=max-age=432000
Expires=Mon, 12 Jun 2006 08:10:57 GMT
Connection=close
Content-Type=image/jpeg
Host=www.highandwild.co.uk
User-Agent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4)
Gecko/20060508 Firefox/1.5.0.4
Accept=image/png,*/*;q=0.5
Accept-Language=en,en-us;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://www.highandwild.co.uk/
Cookie=KMVisitor=10606061024500283146
If-Modified-Since=Wed, 07 Jun 2006 08:05:00 GMT
If-None-Match="85c0a2-f79-d2f28300"
Cache-Control=max-age=0
Status=Not Modified - 304
Date=Wed, 07 Jun 2006 08:16:21 GMT
Server=Apache/2.0.46 (Red Hat)
Connection=close
Etag="85c0a2-f79-d2f28300"
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]