<!--
{
  "availability" : [
    "macOS: 10.5.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebCacheModel",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:@E@WebCacheModel"
  },
  "title" : "WebCacheModel"
}
-->

# WebCacheModel

Specifies the caching model for a web view.

```
enum WebCacheModel
```

## Topics

### Constants

[`WebCacheModel.documentViewer`](/documentation/WebKit/WebCacheModel/documentViewer)

Releases resources when they are no longer referenced and caches remote resources on disk. This model is appropriate for displaying a static document with no navigation user interface. This is the most memory-efficient model.

[`WebCacheModel.documentBrowser`](/documentation/WebKit/WebCacheModel/documentBrowser)

Caches a reasonable number of resources and previously viewed documents in memory and on disk. This model is appropriate for displaying and navigating between multiple documents.

[`WebCacheModel.primaryWebBrowser`](/documentation/WebKit/WebCacheModel/primaryWebBrowser)

Caches a large number of resources and previously viewed documents in memory and on disk. This model is appropriate for a web view that behaves like a web browser.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)