From f457bd84451471874db81095181ad09cd25dd28b Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Fri, 16 May 2008 16:25:33 +0000 Subject: [PATCH] Streamline manifest includes. Props azaozz. see #6965 git-svn-id: https://develop.svn.wordpress.org/trunk@7943 602fd350-edb4-49c9-b593-d223f7449a82 --- 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 53320e39d9..eb510f9936 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 ? ?> {