File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Parse/Parse/Internal/Commands/CommandRunner/URLSession Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -268,10 +268,17 @@ + (NSURLSessionConfiguration *)_urlSessionConfigurationForApplicationId:(NSStrin
268268 configuration.HTTPCookieAcceptPolicy = NSHTTPCookieAcceptPolicyNever;
269269 configuration.HTTPShouldSetCookies = NO ;
270270
271+ #if TARGET_OS_MACCATALYST
272+ // Completely disable caching of responses for security reasons.
273+ configuration.URLCache = [[NSURLCache alloc ] initWithMemoryCapacity: [NSURLCache sharedURLCache ].memoryCapacity
274+ diskCapacity: 0
275+ directoryURL: nil ];
276+ #else
271277 // Completely disable caching of responses for security reasons.
272278 configuration.URLCache = [[NSURLCache alloc ] initWithMemoryCapacity: [NSURLCache sharedURLCache ].memoryCapacity
273279 diskCapacity: 0
274280 diskPath: nil ];
281+ #endif
275282
276283 NSBundle *bundle = [NSBundle mainBundle ];
277284 NSDictionary *headers = [PFCommandURLRequestConstructor defaultURLRequestHeadersForApplicationId: applicationId
You can’t perform that action at this time.
0 commit comments