/** * Sets the number of seconds after which the response should no longer be considered fresh by shared caches. * * This methods sets the Cache-Control s-maxage directive. * * @param integer $value A number of seconds */ public function setSharedMaxAge($value) { $this->headers->getCacheControl()->setSharedMaxAge($value); }
public function isNoCache() { return $this->headers->getCacheControl()->isNoCache() || 'no-cache' == $this->headers->get('Pragma'); }