From b7aa3cdd7db8ca2f3bad8694054a0be3a776ec87 Mon Sep 17 00:00:00 2001 From: mikelittle Date: Sun, 25 May 2003 23:38:03 +0000 Subject: [PATCH] Fixed html headers git-svn-id: http://svn.automattic.com/wordpress/trunk@101 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- blog.header.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/blog.header.php b/blog.header.php index b7125c7fd1..a214f023ed 100644 --- a/blog.header.php +++ b/blog.header.php @@ -37,15 +37,14 @@ $b2varstoreset = array('m','p','posts','w','c', 'cat','withcomments','s','search /* Connecting to the db */ dbconnect(); +/* Sending HTTP headers */ @header ("X-Pingback: $siteurl/xmlrpc.php"); -/* Sending HTTP headers // It is presumptious to think that WP is the only thing that might change on the page. -$last_modified_header = mysql2date('D, d M Y H:i:s', get_lastpostdate()); -if (!$is_winIE) { - @header ("Last-Modified: $last_modified_header"); - @header ('ETag: "'.md5($last_modified_header.$pagenow).'"'); -} -*/ +@header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past +@header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified +@header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1 +@header("Cache-Control: post-check=0, pre-check=0", false); +@header("Pragma: no-cache"); // HTTP/1.0 /* Getting settings from db */ $posts_per_page = get_settings('posts_per_page');