Ergo\Http\ResponseBuilder::notCachable PHP Method

notCachable() public method

Sets the headers required to prevent response caching.
public notCachable ( )
    public function notCachable()
    {
        return $this->cacheControl('no-store', 'no-cache', 'must-revalidate')->addHeader('Pragma', 'no-cache')->expires(strtotime('-1 year'));
    }