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

This commit is contained in:
Garrett Moon
2016-07-15 15:02:09 -07:00
committed by GitHub
parent 855d457bcf
commit 3dbbfc7591

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"];