* Generate cache key from URL
(url)
| 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 |
no outgoing calls
no test coverage detected