Code Duplication    Length = 7-9 lines in 2 locations

includes/OutputPage.php 2 locations

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