mod_expires working correctly?
- From: "Dan V." <d@xxxxx>
- Date: Thu, 20 Apr 2006 07:45:30 -0400
When I use a server header checker tool ( http://www.web-caching.com/ ) to
check the web pages I get this message below. Does that look OK? Does it
have to validate? Thanks. The other images and .css stylesheet referenced
from the page all Validate and have Last-Modified information in addition to
Cache-control and Expires information.
Date Thu, 20 Apr 2006 01:45:15 GMT
Expires 5 weeks 6 days ago (Thu, 09 Mar 2006 01:48:28 GMT)
Content-Length - (actual size: 6107)
Server Apache/1.3.34 (Unix) mod_fastcgi/2.4.2 mod_auth_passthrough/1.8
mod_log_bytes/1.2 mod_bwlimited/1.4 FrontPage/126.96.36.19935 mod_ssl/2.8.25
This object has been deliberately marked stale. It doesn't have a validator
present. It doesn't have a Content-Length header present, so it can't be
used in a HTTP/1.0 persistent connection. The clock on this Web server
appears to be set incorrectly; this can cause problems when calculating
This is the code I am using in .htaccess:
# Expire .gif's 1 month from when they're accessed
ExpiresByType image/gif A2592000
# Expire everything else 1 day from when it's last modified
ExpiresDefault "modification plus 1 day"