Printable pages not cacheable, as suggested by... gwicke?
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Feb 2004 00:45:48 +0000 (00:45 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 4 Feb 2004 00:45:48 +0000 (00:45 +0000)
includes/OutputPage.php

index e14ac1a..157742c 100644 (file)
@@ -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.