cached response logic seems to not work as expected