Fix password-share caching, slug gate, video probe and mobile tile tap (#119, #294)

This commit is contained in:
Alan Grainger
2026-10-05 09:39:14 +13:00
parent bbc23b6250
commit 588174f62e
7 changed files with 118 additions and 16 deletions
+6 -3
View File
@@ -160,9 +160,12 @@ export async function gallery (res: Response, share: SharedLink, openItem?: numb
metaBase
}
// HTML gallery page cache time
const cacheTime = Math.max(0, getNumericConfigOption('ipp.gallery.cacheTime', 300))
res.header('Cache-Control', 'public, max-age=' + cacheTime)
// HTML gallery page cache time. A password-protected gallery keeps the
// no-store that handleShareRequest set.
if (!share.password) {
const cacheTime = Math.max(0, getNumericConfigOption('ipp.gallery.cacheTime', 300))
res.header('Cache-Control', 'public, max-age=' + cacheTime)
}
res.send(renderPage(h(Gallery, props)))
}