image function use

This commit is contained in:
Pfeil, Scott Robert 2018-05-10 12:52:02 -04:00
parent 6edf0ab99c
commit 937daba018

View File

@ -523,7 +523,7 @@ static NSString * const STATIC_CACHE_COMPONENT = @"StaticCache.txt";
//use Freebee to download image first if it is not already in the cache, then store image to cache
NSCachedURLResponse *cachedResponse = [sharedCache cachedResponseForRequest:request];
if (!cachedResponse.data) {
cachedResponse = [[MFFreebeeHandler sharedHandler] freebee_dataWithContentsOfURL:s7URL];
cachedResponse = [[MFFreebeeHandler sharedHandler] freebee_dataWithImageURL:s7URL];
if (cachedResponse) {
//system stores cache based datatask and check cache based on response,
//need to manually store cache for response