MCPcopy Create free account
hub / github.com/SpecterOps/Nemesis / getCacheKey

Method getCacheKey

projects/frontend/src/utils/fileCache.js:22–25  ·  view source on GitHub ↗

* Generate cache key from URL

(url)

Source from the content-addressed store, hash-verified

20 * Generate cache key from URL
21 */
22 getCacheKey(url) {
23 const urlObj = new URL(url, window.location.origin);
24 return urlObj.pathname + urlObj.search; // Include query string to differentiate range requests
25 }
26
27 /**
28 * Check if a cache entry is still valid

Callers 3

getMethod · 0.95
setMethod · 0.95
cachedFetchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected