Symfony\Component\HttpFoundation\Request::isNoCache PHP Method

isNoCache() public method

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

Usage Example

Example #1
0
    public function testIsNoCache()
    {
        $request = new Request();
        $isNoCache = $request->isNoCache();

        $this->assertFalse($isNoCache);
    }
All Usage Examples Of Symfony\Component\HttpFoundation\Request::isNoCache