We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aaf3c1b commit 0d98741Copy full SHA for 0d98741
1 file changed
routes/index.ts
@@ -76,15 +76,6 @@ async function getRelease(tag: string | undefined): Promise<CachedRelease | null
76
const version = await fetchNpmDistTagVersion(DEFAULT_DIST_TAG);
77
if (version) {
78
const release = buildReleaseFromTag(`v${version}`);
79
- // Verify asset exists before caching — npm may publish before GitHub release assets are ready
80
- try {
81
- const probe = await fetch(release.assets.x64!, { method: "HEAD", redirect: "manual" });
82
- if (probe.status === 404) {
83
- return kv.get<CachedRelease>(LATEST_STALE_KEY);
84
- }
85
- } catch {
86
- // Network error checking asset — still serve the release, cache writes are best-effort below
87
88
try {
89
await Promise.all([
90
kv.put(LATEST_CACHE_KEY, release, { ttl: LATEST_CACHE_TTL }),
0 commit comments