From: Tim Starling Date: Wed, 4 Feb 2004 00:45:48 +0000 (+0000) Subject: Printable pages not cacheable, as suggested by... gwicke? X-Git-Tag: 1.3.0beta1~1022 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=6c9a30a34525ed660da8bffddd8c88126305b69e;p=lhc%2Fweb%2Fwiklou.git Printable pages not cacheable, as suggested by... gwicke? --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index e14ac1aa45..157742c651 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -251,7 +251,9 @@ class OutputPage { # FIXME: This header may cause trouble with some versions of Internet Explorer header( "Vary: Accept-Encoding, Cookie" ); if( $this->mLastModified != "" ) { - if( $wgUseSquid && ! isset( $_COOKIE[ini_get( "session.name") ] ) ) { + if( $wgUseSquid && ! isset( $_COOKIE[ini_get( "session.name") ] ) && + ! $this->isPrintable() ) + { if ( $wgUseESI ) { # We'll purge the proxy cache explicitly, but require end user agents # to revalidate against the proxy on each visit.