MCPcopy Create free account
hub / github.com/angular/dev-infra / open

Method open

github-actions/browserstack/set-browserstack-env.js:16389–16403  ·  view source on GitHub ↗

* @see https://w3c.github.io/ServiceWorker/#dom-cachestorage-open * @param {string} cacheName * @returns {Promise }

(_0)

Source from the content-addressed store, hash-verified

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"));

Callers

nothing calls this directly

Calls 5

__asyncFunction · 0.70
__privateGetFunction · 0.70
hasMethod · 0.45
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected