NSURLSessionDownloadTask cancelByProducingResumeData return null

让人想犯罪 __ 提交于 2019-12-04 19:34:58

Do you know if the request satisfies the criteria outlined in the documentation for the cancelByProducingResumeData method?

A download can be resumed only if the following conditions are met:

  • The resource has not changed since you first requested it
  • The task is an HTTP or HTTPS GET request
  • The server provides either the ETag or Last-Modified header (or both) in its response
  • The server supports byte-range requests
  • The temporary file hasn’t been deleted by the system in response to disk space pressure
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!