---
title: URLCache.StoragePolicy.allowed
framework: foundation
role: symbol
role_heading: Case
path: foundation/urlcache/storagepolicy/allowed
---

# URLCache.StoragePolicy.allowed

Storage in URLCache is allowed without restriction.

## Declaration

```swift
case allowed
```

## Discussion

Discussion important: iOS prior to version 5 ignores this cache policy, and instead treats it as URLCache.StoragePolicy.allowedInMemoryOnly.

## See Also

### Policies

- [URLCache.StoragePolicy.allowedInMemoryOnly](foundation/urlcache/storagepolicy/allowedinmemoryonly.md)
- [URLCache.StoragePolicy.notAllowed](foundation/urlcache/storagepolicy/notallowed.md)
