Serve static assets from versioned path

This commit is contained in:
Alan Grainger
2026-07-01 08:54:16 +12:00
parent 3c5fbcdc65
commit 5c8627b00c
+3
View File
@@ -159,6 +159,9 @@ export async function gallery (res: Response, share: SharedLink, openItem?: numb
metaBase metaBase
} }
// Always revalidate the HTML so it picks up new versioned asset URLs on
// upgrade; the assets themselves are immutable-cached. (304s via ETag.)
res.header('Cache-Control', 'no-cache')
res.send(renderPage(h(Gallery, props))) res.send(renderPage(h(Gallery, props)))
} }