Latest 1.1.7
License MIT
Platforms ios 7.0, requires ARC


  • [x] Categories for UIWebView, MKWebview, adding cache management
  • [x] An asynchronous cache downloader
  • [x] An asynchronous memory + disk cache caching with automatic cache expiration handling
  • [x] A background cache decompression
  • [x] A guarantee that the same URL won’t be downloaded several times
  • [x] A guarantee that bogus URLs won’t be retried again and again
  • [x] A guarantee that main thread will never be blocked
  • [x] Performances!
  • [x] Use GCD and ARC


  • iOS 7.0 or later
  • tvOS 9.0 or later
  • watchOS 2.0 or later
  • OS X 10.8 or later
  • Xcode 7.3 or later

Getting Started

Who Uses It


  • If you need help, use Stack Overflow. (Tag ‘DPWebViewLocalCache’)
  • If you’d like to ask a general question, use Stack Overflow.
  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

How To Use


#import <DPLocalCache.h>
- (void)viewDidLoad {
    //Any place to add only once!!!
    DPLocalCache *urlCache = [[DPLocalCache alloc] initWithMemoryCapacity:20 * 1024 * 1024
                                                             diskCapacity:200 * 1024 * 1024
    [NSURLCache setSharedURLCache:urlCache];
- (void)didReceiveMemoryWarning{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.

    //Any place to add only once!!!
    DPLocalCache *urlCache = (DPLocalCache *)[NSURLCache sharedURLCache];
    [urlCache deleteCacheFolder];


There are three ways to use DPWebViewLocalCache in your project:

  • using CocoaPods
  • using Carthage
  • by cloning the project into your repository

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. See the Get Started section for more details.


platform :ios, '7.0'
pod 'DPWebViewLocalCache', '~> 1.1.6'

If you are using Swift, be sure to add use_frameworks! and set your target to iOS 8+:

platform :ios, '8.0'

Build Project

At this point your workspace should build without error. If you are having problem, post to the Issue and the
community can help you solve it.



All source code is licensed under the MIT License.

Pictures show

Latest podspec

    "name": "DPWebViewLocalCache",
    "version": "1.1.7",
    "platforms": {
        "ios": "7.0"
    "summary": "A delightful setting interface framework.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "u6d82u9e26": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.1.7"
    "source_files": "DPWebViewLocalCache_SDK/**/*.{h,m}",
    "requires_arc": true

Pin It on Pinterest

Share This