bpms_site/.svn/pristine/d2/d2d8582d67ef9b93e26ce9781fc0c4d9b506f691.svn-base
2025-11-02 16:38:49 +03:30

26 lines
1009 B
Plaintext

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "prunePrefetchCache", {
enumerable: true,
get: function() {
return prunePrefetchCache;
}
});
const _getprefetchcacheentrystatus = require("../get-prefetch-cache-entry-status");
function prunePrefetchCache(prefetchCache) {
for (const [href, prefetchCacheEntry] of prefetchCache){
if ((0, _getprefetchcacheentrystatus.getPrefetchEntryCacheStatus)(prefetchCacheEntry) === _getprefetchcacheentrystatus.PrefetchCacheEntryStatus.expired) {
prefetchCache.delete(href);
}
}
}
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
Object.defineProperty(exports.default, '__esModule', { value: true });
Object.assign(exports.default, exports);
module.exports = exports.default;
}
//# sourceMappingURL=prune-prefetch-cache.js.map