using the response itself to check if cache is expired