src/Guzzle/Plugin/Cache/DefaultCacheStorage.php
private function requestsMatch($vary, $r1, $r2)
    {
        if ($vary) {
            foreach (explode(',', $vary) as $header) {
                $key = trim(strtolower($header));
                $v1 = isset($r1[$key]) ? $r1[$key] : null;
                $v2 = isset($r2[$key]) ? $r2[$key] : null;
                if ($v1 !== $v2) {
                    return false;
                }
            }
        }

        return true;
    }
private function requestsMatch($vary, $r1, $r2)
    {
        if ($vary) {
            foreach (explode(',', $vary) as $header) {
                $key = trim(strtolower($header));
                $v1 = isset($r1[$key]) ? $r1[$key] : null;
                $v2 = isset($r2[$key]) ? $r2[$key] : null;
                if ($v1 !== $v2) {
                    return false;
                }
            }
        }

        return true;
    }
private function requestsMatch ( $ vary , $ r1 , $ r2 ) { if ( $ vary ) { foreach ( explode ( ',' , $ vary ) as $ header ) { $ key = trim ( strtolower ( $ header ) ) ; $ v1 = isset ( $ r1 [ $ key ] ) ? $ r1 [ $ key ] : null ; $ v2 = isset ( $ r2 [ $ key ] ) ? $ r2 [ $ key ] : null ; if ( $ v1 !== $ v2 ) { return false ; } } } return true ; }
Determines whether two Request HTTP header sets are non-varying

@param string $vary Response vary header
@param array  $r1   HTTP header array
@param array  $r2   HTTP header array

@return bool
Determines whether two Request HTTP header sets are non - varying