* @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open * @param {string} cacheName * @returns {Promise }
(_0)
| 16387 | resultList.push(requestResponse); |
| 16388 | } |
| 16389 | } |
| 16390 | return resultList; |
| 16391 | }; |
| 16392 | _requestMatchesCachedItem = new WeakSet(); |
| 16393 | requestMatchesCachedItem_fn = function(requestQuery, request, response = null, options) { |
| 16394 | const queryURL = new URL(requestQuery.url); |
| 16395 | const cachedURL = new URL(request.url); |
| 16396 | if (options == null ? void 0 : options.ignoreSearch) { |
| 16397 | cachedURL.search = ""; |
| 16398 | queryURL.search = ""; |
| 16399 | } |
| 16400 | if (!urlEquals(queryURL, cachedURL, true)) { |
| 16401 | return false; |
| 16402 | } |
| 16403 | if (response == null || (options == null ? void 0 : options.ignoreVary) || !response.headersList.contains("vary")) { |
| 16404 | return true; |
| 16405 | } |
| 16406 | const fieldValues = getFieldValues(response.headersList.get("vary")); |
nothing calls this directly
no test coverage detected