Response::isForbidden()

bool isForbidden() Is the response forbidden? Return Value bool

Response::isFresh()

bool isFresh() Returns true if the response is "fresh". Fresh responses may be served from cache without any interaction with the origin. A response is considered fresh when it includes a Cache-Control/max-age indicator or Expires header and the calculated age is less than the freshness lifetime. Return Value bool true if the response is fresh, false otherwise

Response::isInformational()

bool isInformational() Is response informative? Return Value bool

Response::isInvalid()

bool isInvalid() Is response invalid? Return Value bool See also http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Response::getVary()

array getVary() Returns an array of header names given in the Vary header. Return Value array An array of Vary names

Response::isCacheable()

bool isCacheable() Returns true if the response is worth caching under any circumstance. Responses marked "private" with an explicit Cache-Control directive are considered uncacheable. Responses with neither a freshness lifetime (Expires, max-age) nor cache validator (Last-Modified, ETag) are considered uncacheable. Return Value bool true if the response is worth caching, false otherwise

Response::hasVary()

bool hasVary() Returns true if the response includes a Vary header. Return Value bool true if the response includes a Vary header, false otherwise

Response::isClientError()

bool isClientError() Is there a client error? Return Value bool

Response::getStatus()

int getStatus() Gets the response status code. Return Value int The response status code

Response::getMaxAge()

int|null getMaxAge() Returns the number of seconds after the time specified in the response's Date header when the response should no longer be considered fresh. First, it checks for a s-maxage directive, then a max-age directive, and then it falls back on an expires header. It returns null when no maximum age can be established. Return Value int|null Number of seconds