/***设置缓存
***设置路径,设置策略,永久保存,
***缓存有效时间-3天
***/
if(start ==0 & aid == 0){
myCache1 = [[ASIDownloadCache alloc] init];
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory,NSUserDomainMask, YES);
NSString *documentDirectory = [paths objectAtIndex:0];
[myCache1 setStoragePath:[documentDirectory stringByAppendingPathComponent:@"SaveLastCacheArticle"]];
[[ASIDownloadCache sharedCache]setShouldRespectCacheControlHeaders:NO];
[request setCacheStoragePolicy:ASICachePermanentlyCacheStoragePolicy ];
[request setCachePolicy:ASIFallbackToCacheIfLoadFailsCachePolicy];
[request setDownloadCache:myCache1];
[request setSecondsToCache:60*60*24*3]; //缓存3天
}