From 4e1a35277124e9bd2c1669ed4bb6c61aee114fb6 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 16 May 2008 16:25:33 +0000 Subject: [PATCH] Streamline manifest includes. Props azaozz. see #6965 git-svn-id: http://svn.automattic.com/wordpress/trunk@7943 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/gears-manifest.php | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/wp-admin/gears-manifest.php b/wp-admin/gears-manifest.php index 53320e39d..eb510f993 100644 --- a/wp-admin/gears-manifest.php +++ b/wp-admin/gears-manifest.php @@ -1,11 +1,18 @@ scripts as $script ) { @@ -18,7 +25,10 @@ foreach ( $wp_scripts->scripts as $script ) { $version = md5($version); -nocache_headers(); +header( 'Expires: Wed, 11 Jan 1984 05:00:00 GMT' ); +header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s' ) . ' GMT' ); +header( 'Cache-Control: no-cache, must-revalidate, max-age=0' ); +header( 'Pragma: no-cache' ); header( 'Content-Type: application/x-javascript; charset=UTF-8' ); // application/json text/plain ? ?> {