diff --git a/lib/rack/cache/meta_store.rb b/lib/rack/cache/meta_store.rb index 7fc63a9..7c5d729 100644 --- a/lib/rack/cache/meta_store.rb +++ b/lib/rack/cache/meta_store.rb @@ -34,7 +34,7 @@ def lookup(request, entity_store) # find a cached entry that matches the request. env = request.env - match = entries.detect{ |req,res| requests_match?((res['vary'] || res['vary']), env, req) } + match = entries.detect{ |req,res| requests_match?(res['vary'], env, req) } return nil if match.nil? _, res = match