Delete library stills from disk before the catalog write, and stop caching their media.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Towsty
2026-10-25 17:55:30 -05:00
co-authored by Cursor
parent 545a3d749b
commit 20359bfbd4
26 changed files with 635 additions and 247 deletions
+5
View File
@@ -8,5 +8,10 @@ export default defineEventHandler((event) => {
}
if (path.startsWith('/api/prompt/')) {
setHeader(event, 'Cache-Control', 'no-cache, no-store, no-transform')
return
}
if (path === '/api/library' || path.startsWith('/api/library/')) {
setHeader(event, 'Cache-Control', 'no-store, no-cache, must-revalidate')
setHeader(event, 'Pragma', 'no-cache')
}
})