---
title: cachePolicy
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsurlrequest/cachepolicy-swift.property
---

# cachePolicy

The request’s cache policy.

## Declaration

```swift
var cachePolicy: NSURLRequest.CachePolicy { get }
```

## See Also

### Related Documentation

- [cachePolicy](foundation/nsmutableurlrequest/cachepolicy.md)

### Working with a cache policy

- [NSURLRequest.CachePolicy](foundation/nsurlrequest/cachepolicy-swift.enum.md)
