Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

Samples: the browser keeps sample media for a day

Adarsh9a0739ed43fb
diff --git a/next.config.ts b/next.config.ts
index efae3daa..a8db82b5 100644
--- a/next.config.ts
+++ b/next.config.ts
@@ -36,6 +36,8 @@ const nextConfig: NextConfig = {
// Vendored scripts (public/vendor: the 3D viewer's meshopt decoder) keep their name across upgrades:
// a day, then revalidated in the background.
{ source: "/vendor/:path*", headers: [{ key: "Cache-Control", value: "public, max-age=86400, stale-while-revalidate=604800" }] },
+ // Sample media (public/samples: Clean up voice's demo, the demo engine's clips) keep their name too: the same.
+ { source: "/samples/:path*", headers: [{ key: "Cache-Control", value: "public, max-age=86400, stale-while-revalidate=604800" }] },
// Preset covers (public/previews, pnpm eval:covers) keep their name when a cover is made again, but every URL the
// site gives them ends in the file's content version (?v=, 8 hex digits of its sha256, from the generated
// manifests): a changed file gets a new URL, so a browser keeps a versioned one for a year and never revalidates