Check response input stream to write cache file