spotify / XCRemoteCache

Other
827 stars 50 forks source link

Disable local URLSession cache #91

Closed polac24 closed 2 years ago

polac24 commented 2 years ago

By default, (NS)URLSession creates a local cache at ~/Library/Caches/xc{prebuild|postbuild}. This cache is redundant as we have a proprietary cache handled by CachedNetworkClient.

Note: This change does not evict existing entries but does not append any new entries there. On a machine that never has never run XCRemoteCache, a cache directory will not be even created.