Fix logic error in Cache Vary matching algorithm.