NSURLSession and image cache
<p>In my iOS 9+ Swift 2.2 application, I'm downloading multiple images with NSURLSession's dataWithRequest method :</p>

<pre><code>    let session: NSURLSession = NSURLSession(configuration: self.configuration)
    let request = NSURLRequest(URL: self.url)
    let dataTask = session.dataTaskWithRequest(request) { (data, response, error) in
        // Handle image
    }

    dataTask.resume()
    session.finishTasksAndInvalidate()
</code></pre>

<p>The question is : How can I limit the image cache size? I can see that my application is using more and more disk space on my device. Is there any way to keep the image cache but to limit the size that my application can use? Is there an expiration by default?</p>