else { $timestamp =
$response->
getLastModified()->
getTimestamp();
} $response->
setEtag($timestamp);
// Allow HTTP proxies to cache pages for anonymous users without a session
// cookie. The Vary header is used to indicates the set of request-header
// fields that fully determines whether a cache is permitted to use the
// response to reply to a subsequent request for a given URL without
// revalidation.
if (!
$response->
hasVary() && !Settings::
get('omit_vary_cookie'
)) { $response->
setVary('Cookie', FALSE
);
} } /**
* Disable caching in the browser and for HTTP/1.1 proxies and clients.
*
* @param \Symfony\Component\HttpFoundation\Response $response
* A response object.
*/
protected function setCacheControlNoCache(Response
$response) {