fix the getLastRequest and getLastResponse when having a cached response