foreach (['Date', 'Expires', 'Cache-Control', 'ETag', 'Last-Modified'
] as $name) { if ($response->headers->
has($name)) { $entry->headers->
set($name,
$response->headers->
get($name));
} } $response =
$entry;
} else { $this->
record($request, 'invalid'
);
} if ($response->
isCacheable()) { $this->
store($request,
$response);
} return $response;
} /**
* Unconditionally fetches a fresh response from the backend and
* stores it in the cache if is cacheable.
*
* @param bool $catch Whether to process exceptions
*/