Without this, the system is likely caching our NSURLResponses which means double caching :(

This commit is contained in:
Garrett Moon
2016-07-15 10:29:05 -07:00
parent b60c7ca8b8
commit b509f94da0

View File

@@ -185,7 +185,7 @@ static dispatch_once_t sharedDispatchToken;
if (self = [super init]) {
self.cache = [self defaultImageCache];
if (!configuration) {
configuration = [NSURLSessionConfiguration defaultSessionConfiguration];
configuration = [NSURLSessionConfiguration ephemeralSessionConfiguration];
}
_callbackQueue = dispatch_queue_create("PINRemoteImageManagerCallbackQueue", DISPATCH_QUEUE_CONCURRENT);
_lock = [[PINRemoteLock alloc] initWithName:@"PINRemoteImageManager"];