diff --git a/core/modules/page_cache/src/StackMiddleware/PageCache.php b/core/modules/page_cache/src/StackMiddleware/PageCache.php index b087176..b0cdf71 100644 --- a/core/modules/page_cache/src/StackMiddleware/PageCache.php +++ b/core/modules/page_cache/src/StackMiddleware/PageCache.php @@ -223,11 +223,11 @@ protected function fetch(Request $request, $type = self::MASTER_REQUEST, $catch } // Use the #cache['max-age'] if available. - if($response instanceof CacheableResponseInterface) { + if ($response instanceof CacheableResponseInterface) { $max_age = $response->getCacheableMetadata()->getCacheMaxAge(); - $expire = ($max_age !== Cache::PERMANENT)? time() + $max_age : Cache::PERMANENT; + $expire = ($max_age !== Cache::PERMANENT) ? time() + $max_age : Cache::PERMANENT; } - else{ + else { // Use the actual timestamp from an Expires header, if available. $date = $response->getExpires()->getTimestamp(); $expire = ($date > time()) ? $date : Cache::PERMANENT;