Here is my 2 line wordpress cache.
wp-includes/classes.php~ 2006-01-24 22:59:41.000000000 -0500
+++ wp-includes/classes.php 2006-02-03 10:39:57.370444690 -0500
@@ -1612,7 +1612,8 @@
status_header( 404 );
} else if ( empty($this->query_vars[’feed’]) ) {
@header(’Content-type: ‘ . get_option(’html_type’) . ‘; charset=’ . get_option(’blog_charset’));
– } else {
+ } //else {
+ {
// We’re showing a feed, so WP is indeed the only thing that last changed
if ( $this->query_vars[’withcomments’] )
$wp_last_modified = mysql2date(’D, d M Y H:i:s’, get_lastcommentmodified(’GMT’), 0).’ GMT’;
I have no idea why wordpress doesn’t return Last-Modified headers by default, but this little patch at least gets it to return something! This will help cache servers, and spiders. They won’t read a file that they already have.