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
doc_Symfony
2016-10-28 06:30:23
Comments
Leave a Comment

Please login to continue.