```js c = await caches.open('static1') c.addAll(['/', '/']) ``` With the above, Chrome throws "DOMException: Failed to execute 'addAll' on 'Cache': Cache.addAll(): duplicate requests" which is more readable.
Bug 1241045 Comment 13 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
```js c = await caches.open('static1') c.addAll(['/', '/']) ``` With the above, Chrome throws ["DOMException: Failed to execute 'addAll' on 'Cache': Cache.addAll(): duplicate requests (https://example.com/)"](https://source.chromium.org/chromium/chromium/src/+/main:content/browser/cache_storage/cache_storage_cache.cc;l=792;drc=ee48dfb4fa5cd8d6cc4d7f829057a55225788eb2) which is more readable.