Code Duplication    Length = 7-9 lines in 2 locations

includes/OutputPage.php 2 locations

@@ 2204-2210 (lines=7) @@
2201
					$response->header( 'Cache-Control: s-maxage=' . $this->mCdnMaxage
2202
						. ', must-revalidate, max-age=0' );
2203
				}
2204
			} else {
2205
				# We do want clients to cache if they can, but they *must* check for updates
2206
				# on revisiting the page.
2207
				wfDebug( __METHOD__ . ": private caching; {$this->mLastModified} **", 'private' );
2208
				$response->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', 0 ) . ' GMT' );
2209
				$response->header( "Cache-Control: private, must-revalidate, max-age=0" );
2210
			}
2211
			if ( $this->mLastModified ) {
2212
				$response->header( "Last-Modified: {$this->mLastModified}" );
2213
			}
@@ 2214-2222 (lines=9) @@
2211
			if ( $this->mLastModified ) {
2212
				$response->header( "Last-Modified: {$this->mLastModified}" );
2213
			}
2214
		} else {
2215
			wfDebug( __METHOD__ . ": no caching **", 'private' );
2216
2217
			# In general, the absence of a last modified header should be enough to prevent
2218
			# the client from using its cache. We send a few other things just to make sure.
2219
			$response->header( 'Expires: ' . gmdate( 'D, d M Y H:i:s', 0 ) . ' GMT' );
2220
			$response->header( 'Cache-Control: no-cache, no-store, max-age=0, must-revalidate' );
2221
			$response->header( 'Pragma: no-cache' );
2222
		}
2223
	}
2224
2225
	/**