diff --git a/core-bundle/contao/classes/FrontendTemplate.php b/core-bundle/contao/classes/FrontendTemplate.php
index <HASH>..<HASH> 100644
--- a/core-bundle/contao/classes/FrontendTemplate.php
+++ b/core-bundle/contao/classes/FrontendTemplate.php
@@ -126,7 +126,7 @@ class FrontendTemplate extends \Template
 			// Create the cache file
 			$strMd5CacheKey = md5($strCacheKey);
 			$objFile = new \File('system/cache/html/' . substr($strMd5CacheKey, 0, 1) . '/' . $strMd5CacheKey . '.html', true);
-			$objFile->write('<?php' . " /* $strCacheKey */ \$expire = $intCache; \$content = '{$this->strContentType}'; ?>\n");
+			$objFile->write('<?php' . " /* $strCacheKey */ \$expire = $intCache; \$content = '{$this->strContentType}'; \$type = '{$objPage->type}'; ?>\n");
 			$objFile->append($this->minifyHtml($strBuffer), '');
 			$objFile->close();
 		}
[Core] Set the correct status header for cached files (see #<I>)