modelDownloadSessionConfiguration

private fun modelDownloadSessionConfiguration(): NSURLSessionConfiguration(source)

Creates a non-persistent session for large model archive downloads.

Default iOS sessions can leave completed download artifacts under Library/Caches, which makes a model archive look like app cache until the user clears it manually.

Return

NSURLSession configuration that avoids persistent URL cache writes for model downloads.

Author

Dmitriy Moroz