Skip to content

Commit

Permalink
Revert 4ee424e, fix #9754, #9869, #9323 by adding Last-Modified heade…
Browse files Browse the repository at this point in the history
…rs to match Expires.

Commit has been tested on:
 FF 2.0.14
 FF 3.0.4
 IE 8.0.6001.18241
 IE 6.0.2900.5122
 GC 0.4.154.23
 Opera 9.51.10081
  • Loading branch information
amyreese committed Nov 24, 2008
1 parent a312940 commit 161a677
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core.php
Expand Up @@ -159,9 +159,9 @@ function microtime_float() {

if ( isset( $g_allow_browser_cache ) && ON == $g_allow_browser_cache ) {
switch ( $t_browser_name ) {
#case 'IE':
# header( 'Cache-Control: private, proxy-revalidate' );
# break;
case 'IE':
header( 'Cache-Control: private, proxy-revalidate' );
break;
default:
header( 'Cache-Control: private, must-revalidate' );
break;
Expand All @@ -172,6 +172,7 @@ function microtime_float() {
}

header( 'Expires: ' . gmdate( 'D, d M Y H:i:s \G\M\T', time() ) );
header( 'Last-Modified: ' . gmdate( 'D, d M Y H:i:s \G\M\T', time() ) );

# SEND USER-DEFINED HEADERS
foreach( config_get( 'custom_headers' ) as $t_header ) {
Expand Down

0 comments on commit 161a677

Please sign in to comment.