임 NSURLCacheStorageNotAllowed되어 반환 connection release method in connectionDidFinishLoading, causes errorNSMutableURLRequest는 이전 값도 cachePolicy가 여기에 게시 코드를 사용하여
이제 첫 번째 로그 didFail 반환을 실행합니다. 초 실행; 이전 응답 데이터를 반환합니다. 내 (로컬 호스트) 서버가 완전히 오프라인 상태입니다. 및 cachePolicy (나는 위의 게시 된 링크 코드 확인)
NSMutableURLRequest *request=
[NSMutableURLRequest requestWithURL:url
cachePolicy:NSURLCacheStorageNotAllowed timeoutInterval:3.0f];
응답 데이터가 어딘가에 캐시 여전히 존재하는 것 같다 NSURLCacheStorageNotAllowed입니다.
하지만 -not이
하지 반환 된 캐시를 implemented- 나는 댓글을 달았되는 // NSURLRequestReloadIgnoringLocalAndRemoteCacheData를 사용하는 경우.
NSURLRequestReloadIgnoringLocalAndRemoteCacheData
및
NSURLCacheStorageNotAllowed
내가 무엇을해야한다
하지만 그렇게 의 차이가 무엇인지 경우
?
http://stackoverflow.com/questions/18351491/how-to-wait-response-and-parse-xml-done-in-afnetworking-ios/18351761#18351761 –
나머지 http://stackoverflow.com/ questions/18245461/ios-restkit-application-design/18246517 # 18246517 –