macOS High Sierra

About content caching

What is content caching?

Content caching is a macOS service that helps reduce bandwidth usage and speed up software installation on Mac computers, iOS devices, and AppleTV devices.

Content caching speeds up downloading of software distributed by Apple and data that users store in iCloud by saving content that local Mac computers, iOS devices, and Apple TV devices have already downloaded. The saved content is stored in a content cache on a Mac, and is available for other devices to retrieve without going out over the Internet.

For more information about supported content types, see the Apple Support article Content types supported by the caching service.

You can use content caching on networks consisting of a NAT environment for the content cache and all devices, or on networks consisting of publicly routable IP addresses. Apple devices with iOS 7 or later and OS X 10.8.2 or later automatically contact a nearby content cache without any configuration.

Important: It’s strongly recommended that you set up content caching on a Mac that has a single wired Ethernet connection as its only connection to the network. Content caching can use a Wi-Fi connection instead of Ethernet, but performance might be affected.

How does it work?

After you enable content caching on a Mac, it keeps a copy of all content that local networked devices (called clients) download.

For example, when the first client on your network downloads a macOS update, the content cache keeps a copy of the update. When the next client on the network connects to the App Store to download the update, the update is copied from the content cache rather than from the App Store.

Because the local network is normally much faster than the Internet, the second client (and all subsequent clients) download updates much faster.

The following figure illustrates a single private subnet with a single content cache:

A single subnet caching server.

What if my network has multiple subnets?

By default, content caching is limited to a specific subnet, but you can set it to provide content caching for:

  • All combinations of subnets of the local network that share a common public IP address

  • Any combination of subnets of publicly accessible IP addresses (with additional DNS setting support)

If your network has multiple subnets that share the same public IP address, all the subnets can take advantage of a single content cache. The following figure illustrates a network with two subnets sharing a single content cache:

Multiple subnet caching server.

Can I have more than one content cache?

When your network has more than one content cache, the content caches automatically become peers and can consult and share cached software. When a requested item isn’t available on one content cache, it checks its peers for the item. If the item is available, it’s downloaded from the peer. If it’s not available, the content cache downloads the item from one of its parents, if any are configured, or from Apple through the Internet. Clients automatically select the right content cache when more than one is available.

Where are the cached files stored?

The default location for cached content is the boot volume. You can choose an alternate location and specify how much of the volume is used by content caching. When the disk space for the cached content reaches the maximum you specified, or when the available space on the volume runs low, the content cache deletes content that hasn’t been used recently to make space for the next request.

Performance best practices

Content caching is primarily affected by two main fa