summaryrefslogtreecommitdiff
path: root/Juick/APIClient.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-20 00:03:10 +0300
committerGravatar Vitaly Takmazov2018-07-20 00:03:10 +0300
commite76034045b49064329d6834862e8c78ab8525c91 (patch)
treeffea8268d406db2533f27f8ab9c9c49d6cd1ac6d /Juick/APIClient.m
parentc988224d13f63702c3cb3147c4b9f9a4ddbec212 (diff)
Pull-to-refresh fix
Diffstat (limited to 'Juick/APIClient.m')
-rw-r--r--Juick/APIClient.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Juick/APIClient.m b/Juick/APIClient.m
index 1b3fb6e..5c21f19 100644
--- a/Juick/APIClient.m
+++ b/Juick/APIClient.m
@@ -29,6 +29,7 @@
if (self = [super init]) {
self.manager = [[AFHTTPSessionManager alloc] initWithBaseURL:[NSURL URLWithString:@"https://api.juick.com"]];
self.manager.requestSerializer = [AFJSONRequestSerializer new];
+ [self.manager.requestSerializer setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData];
self.backgroundQueue = [NSOperationQueue new];
self.dateFormatter = [[NSDateFormatter alloc] init];
self.dateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";