pts-core: Detect if no bytes received when downloading files from the cache