src/Guzzle/Http/Message/Response.php
public function getMaxAge()
    {
        if ($header = $this->getHeader('Cache-Control')) {
            // s-max-age, then max-age, then Expires
            if ($age = $header->getDirective('s-maxage')) {
                return $age;
            }
            if ($age = $header->getDirective('max-age')) {
                return $age;
            }
        }

        if ($this->getHeader('Expires')) {
            return strtotime($this->getExpires()) - time();
        }

        return null;
    }
public function getMaxAge()
    {
        if ($header = $this->getHeader('Cache-Control')) {
            // s-max-age, then max-age, then Expires
            if ($age = $header->getDirective('s-maxage')) {
                return $age;
            }
            if ($age = $header->getDirective('max-age')) {
                return $age;
            }
        }

        if ($this->getHeader('Expires')) {
            return strtotime($this->getExpires()) - time();
        }

        return null;
    }
public function getMaxAge ( ) { if ( $ header = $ this -> getHeader ( 'Cache-Control' ) ) { // s-max-age, then max-age, then Expires if ( $ age = $ header -> getDirective ( 's-maxage' ) ) { return $ age ; } if ( $ age = $ header -> getDirective ( 'max-age' ) ) { return $ age ; } } if ( $ this -> getHeader ( 'Expires' ) ) { return strtotime ( $ this -> getExpires ( ) ) - time ( ) ; } return null ; }
Gets the number of seconds from the current time in which this response is still considered fresh

@return int|null Returns the number of seconds
Gets the number of seconds from the current time in which this response is still considered fresh