Change to Response middleware so that it can intercept cached entries