From 6c9a30a34525ed660da8bffddd8c88126305b69e Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Wed, 4 Feb 2004 00:45:48 +0000 Subject: [PATCH] Printable pages not cacheable, as suggested by... gwicke? --- includes/OutputPage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. -- 2.20.1