image function use
This commit is contained in:
parent
6edf0ab99c
commit
937daba018
@ -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
|
//use Freebee to download image first if it is not already in the cache, then store image to cache
|
||||||
NSCachedURLResponse *cachedResponse = [sharedCache cachedResponseForRequest:request];
|
NSCachedURLResponse *cachedResponse = [sharedCache cachedResponseForRequest:request];
|
||||||
if (!cachedResponse.data) {
|
if (!cachedResponse.data) {
|
||||||
cachedResponse = [[MFFreebeeHandler sharedHandler] freebee_dataWithContentsOfURL:s7URL];
|
cachedResponse = [[MFFreebeeHandler sharedHandler] freebee_dataWithImageURL:s7URL];
|
||||||
if (cachedResponse) {
|
if (cachedResponse) {
|
||||||
//system stores cache based datatask and check cache based on response,
|
//system stores cache based datatask and check cache based on response,
|
||||||
//need to manually store cache for response
|
//need to manually store cache for response
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user