Code Duplication    Length = 7-9 lines in 2 locations

includes/OutputPage.php 2 locations

@@ 2188-2194 (lines=7) @@
2185
					$response->header( 'Cache-Control: s-maxage=' . $this->mCdnMaxage
2186
						. ', must-revalidate, max-age=0' );
2187
				}
2188
			} else {
2189
				# We do want clients to cache if they can, but they *must* check for updates
2190
				# on revisiting the page.
2191
				wfDebug( __METHOD__ . ": private caching; {$this->mLastModified} **", 'private' );
2192
				$response->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', 0 ) . ' GMT' );
2193
				$response->header( "Cache-Control: private, must-revalidate, max-age=0" );
2194
			}
2195
			if ( $this->mLastModified ) {
2196
				$response->header( "Last-Modified: {$this->mLastModified}" );
2197
			}
@@ 2198-2206 (lines=9) @@
2195
			if ( $this->mLastModified ) {
2196
				$response->header( "Last-Modified: {$this->mLastModified}" );
2197
			}
2198
		} else {
2199
			wfDebug( __METHOD__ . ": no caching **", 'private' );
2200
2201
			# In general, the absence of a last modified header should be enough to prevent
2202
			# the client from using its cache. We send a few other things just to make sure.
2203
			$response->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', 0 ) . ' GMT' );
2204
			$response->header( 'Cache-Control: no-cache, no-store, max-age=0, must-revalidate' );
2205
			$response->header( 'Pragma: no-cache' );
2206
		}
2207
	}
2208
2209
	/**