Ah, I just realized that there is a typo. It should be cachedResponse.json(), instead of cacheResponse.json(). Silly me.
Please close this question.