Save each Comfy run as a new clip even if the output filename repeats.
Purging desktop files let MiniMax reuse MiniMax_H3_00001_, so the next job returned the previous clip. Ignore stale events from the last job so a second generate cannot paste the first video over the new one.
This commit is contained in:
@@ -11,6 +11,6 @@ export default defineEventHandler((event) => {
|
||||
}
|
||||
setHeader(event, 'Content-Type', 'video/mp4')
|
||||
setHeader(event, 'Content-Disposition', `inline; filename="${safeDownloadName(clipTitle(clip))}.mp4"`)
|
||||
setHeader(event, 'Cache-Control', 'private, max-age=3600')
|
||||
setHeader(event, 'Cache-Control', 'private, no-store')
|
||||
return readFileSync(path)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user