Code Duplication    Length = 8-9 lines in 2 locations

lib/includes/loader.web.php 2 locations

@@ 711-718 (lines=8) @@
708
				// as an object clears the cache upon a save.
709
710
				// Send the original headers - they will already contain the correct max-age and expires values;
711
				if (file_exists($cachedheader)) {
712
					$filedata = file($cachedheader);
713
					if (is_array($filedata)) {
714
						while (list($key, $header)=each($filedata)) {
715
							ldHeader($header);
716
						}
717
					}
718
				}
719
				header("X-Ariadne-Cache: Hit");
720
				ldHeader("HTTP/1.1 304 Not Modified");
721
			} else {
@@ 722-730 (lines=9) @@
719
				header("X-Ariadne-Cache: Hit");
720
				ldHeader("HTTP/1.1 304 Not Modified");
721
			} else {
722
				if (file_exists($cachedheader)) {
723
					// Cache header file also contains information about Cache-control;
724
					$filedata = file($cachedheader);
725
					if (is_array($filedata)) {
726
						while (list($key, $header)=each($filedata)) {
727
							ldHeader($header);
728
						}
729
					}
730
				}
731
				header("X-Ariadne-Cache: Hit"); // Send this after the cached headers to overwrite the cached cache-miss header;
732
733
				if ($AR->ESI) {