Adding download progress callback so clients can obtain feedback of the status of a file transfer for cacheFile and cacheBackground methods