Symfony\Component\HttpFoundation\Request::isNoCache PHP Méthode

isNoCache() public méthode

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

Usage Example

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

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