You are here

public function Request::isNoCache in Zircon Profile 8

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

Return value

bool

File

vendor/symfony/http-foundation/Request.php, line 1530

Class

Request
Request represents an HTTP request.

Namespace

Symfony\Component\HttpFoundation

Code

public function isNoCache() {
  return $this->headers
    ->hasCacheControlDirective('no-cache') || 'no-cache' == $this->headers
    ->get('Pragma');
}