An entry for the streamplace vod showcase
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Resolve cache only when the requested version is not "latest"

+2 -1
+2 -1
packages/at-run/runner/src/index.ts
··· 106 106 107 107 async function resolveBundleUri(did: string, name: string, version: string): Promise<string> { 108 108 const cacheKey = `${did}/${name}/${version}` 109 + // Don't cache "latest" - always resolve to get newest version 109 110 const cached = versionResolutionCache.get(cacheKey) 110 - if (cached && !DEV_MODE) return cached 111 + if (cached && !DEV_MODE && version !== "latest") return cached 111 112 112 113 const didDoc = await idResolver.did.resolve(did) 113 114 if (!didDoc) throw new Error(`Failed to resolve DID: ${did}`)