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:
@@ -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')
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user