Skip to content

BundleCache

This content is not available in your language yet.

per-app bundle / features 缓存(由 createBundleCache 创建;可跨会话共享一个实例)

invalidate(target?): void;

无参:清空全部条目(bundle + features;下次 resolve 无条件重拉,既有 etag 一并丢弃)。 带键:只把该 (baseUrl, appId, scope, featuresFingerprint) 的 bundle 条目标记过期——etag 保留,下次 resolve 走 If-None-Match 条件重拉(304 续期 / 200 换新);features 条目不动;键无条目 = 零动作。

BundleCacheKey

void


resolve(input): Promise<ResolvedBundle>;

取 bundle(+ registryConfig)与 features;命中零上游往返

BundleCacheResolveInput

Promise<ResolvedBundle>


stats(): BundleCacheStats;

BundleCacheStats