James Johnson
Sep 4, 2018 · 1 min read

Good question. The simple answer is simply that the api requires a cache name:
https://developer.mozilla.org/en-US/docs/Web/API/CacheStorage/open

I imagine that as a developer there are several reasons one would want to name a cache though. For example, you could have one cache for your app’s interface and another for data with different names. This would allow you to update the data as needed without reloading all of the interface code.