Symfony\Component\HttpFoundation\Response::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.
Signature
public function isCacheable()
Returns
- Boolean
- true if the response is worth caching, false otherwise