You are here

public function Response::isValidateable in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/http-foundation/Response.php \Symfony\Component\HttpFoundation\Response::isValidateable()

Returns true if the response includes headers that can be used to validate the response with the origin server using a conditional GET request.

Return value

bool true if the response is validateable, false otherwise

1 call to Response::isValidateable()
Response::isCacheable in vendor/symfony/http-foundation/Response.php
Returns true if the response is worth caching under any circumstance.

File

vendor/symfony/http-foundation/Response.php, line 552

Class

Response
Response represents an HTTP response.

Namespace

Symfony\Component\HttpFoundation

Code

public function isValidateable() {
  return $this->headers
    ->has('Last-Modified') || $this->headers
    ->has('ETag');
}