---
title: swapCache
framework: webkitjs
role: symbol
role_heading: Instance Method
path: webkitjs/domapplicationcache/1633375-swapcache
---

# swapCache

Replaces the active cache with the latest version.

## Declaration

```data
void swapCache();
```

## See Also

### Updating the Cache

- [add](webkitjs/domapplicationcache/1804703-add.md)
- [update](webkitjs/domapplicationcache/1632530-update.md)
