Last active
December 26, 2015 17:09
-
-
Save asakin/7185211 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @interface HRHResistantURLCache : NSURLCache | |
| @end | |
| @implementation HRHResistantURLCache | |
| - (void)storeCachedResponse:(NSCachedURLResponse *)cachedResponse | |
| forRequest:(NSURLRequest *)request | |
| { | |
| if (301 == [(NSHTTPURLResponse *)cachedResponse.response statusCode]) { | |
| return; | |
| } | |
| [super storeCachedResponse:cachedResponse forRequest:request]; | |
| } | |
| @end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment