From: <nuc...@us...> - 2008-07-30 12:37:50
|
Revision: 5461 http://mantisbt.svn.sourceforge.net/mantisbt/?rev=5461&view=rev Author: nuclear_eclipse Date: 2008-07-30 12:37:47 +0000 (Wed, 30 Jul 2008) Log Message: ----------- Fix caching issue preventing report switching on cacheable pages. Modified Paths: -------------- trunk/mantisbt/core.php Modified: trunk/mantisbt/core.php =================================================================== --- trunk/mantisbt/core.php 2008-07-30 12:37:28 UTC (rev 5460) +++ trunk/mantisbt/core.php 2008-07-30 12:37:47 UTC (rev 5461) @@ -175,7 +175,9 @@ # with option to bypass if running from script global $g_bypass_headers, $g_allow_browser_cache; if ( !isset( $g_bypass_headers ) && !headers_sent() ) { - if ( ! isset( $g_allow_browser_cache ) ) { + if ( isset( $g_allow_browser_cache ) ) { + header( 'Cache-Control: private, must-revalidate' ); + } else { header( 'Pragma: no-cache' ); header( 'Cache-Control: no-store, no-cache, must-revalidate' ); header( 'Cache-Control: post-check=0, pre-check=0', false ); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |