fix(cache): combine duplicate headers for Vary matching (#36476)