---
title: NSURLRequest.CachePolicy.returnCacheDataDontLoad
framework: foundation
role: symbol
role_heading: Case
path: foundation/nsurlrequest/cachepolicy-swift.enum/returncachedatadontload
---

# NSURLRequest.CachePolicy.returnCacheDataDontLoad

Use existing cache data, regardless or age or expiration date, and fail if no cached data is available.

## Declaration

```swift
case returnCacheDataDontLoad
```

## Mentioned in

Accessing cached data

## Discussion

Discussion If there is no existing data in the cache corresponding to a URL load request, no attempt is made to load the data from the originating source, and the load is considered to have failed. This constant specifies a behavior that is similar to an “offline” mode.

## See Also

### Policies

- [NSURLRequest.CachePolicy.useProtocolCachePolicy](foundation/nsurlrequest/cachepolicy-swift.enum/useprotocolcachepolicy.md)
- [NSURLRequest.CachePolicy.reloadIgnoringLocalCacheData](foundation/nsurlrequest/cachepolicy-swift.enum/reloadignoringlocalcachedata.md)
- [NSURLRequest.CachePolicy.reloadIgnoringLocalAndRemoteCacheData](foundation/nsurlrequest/cachepolicy-swift.enum/reloadignoringlocalandremotecachedata.md)
- [reloadIgnoringCacheData](foundation/nsurlrequest/cachepolicy-swift.enum/reloadignoringcachedata.md)
- [NSURLRequest.CachePolicy.returnCacheDataElseLoad](foundation/nsurlrequest/cachepolicy-swift.enum/returncachedataelseload.md)
- [NSURLRequest.CachePolicy.reloadRevalidatingCacheData](foundation/nsurlrequest/cachepolicy-swift.enum/reloadrevalidatingcachedata.md)
