Made adding the response object to the cache optional

In addition to my issue, I made a PR which makes the caching of the response optional