The documentation for NSURLSession cancelByProducingResumeData states:
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
What if the original URL request responds with a 302 (temporary redirect)?
In my testing, it seems that if my server responds a 302 (temporary redirect), then NSURLSession cancelByProducingResumeData does not produce resume data.
Is this the expected behavior?