Added cachedResponse flag to denote if the response has been taken from
cache