Prevent caching of responses by NSURLCache (fix #211)
Showing
1 changed file
with
7 additions
and
0 deletions
@@ -248,4 +248,11 @@ | @@ -248,4 +248,11 @@ | ||
248 | [self done]; | 248 | [self done]; |
249 | } | 249 | } |
250 | 250 | ||
251 | +- (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse | ||
252 | +{ | ||
253 | + // Prevents caching of responses | ||
254 | + return nil; | ||
255 | +} | ||
256 | + | ||
257 | + | ||
251 | @end | 258 | @end |
-
Please register or login to post a comment