Skip to content

Instantly share code, notes, and snippets.

@osmszk
Last active August 29, 2015 13:55
Show Gist options
  • Save osmszk/8705139 to your computer and use it in GitHub Desktop.
Save osmszk/8705139 to your computer and use it in GitHub Desktop.
No use to cookie and remove cache
- (void)dontUseCookie
{
[[NSURLCache sharedURLCache] setMemoryCapacity:0];
}
- (void)removeCache
{
[[NSURLCache sharedURLCache] removeAllCachedResponses];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment