加群弹窗更可靠:顶栏常驻入口 + 每次打开都提醒 + 静态资源强校验

- qq-group.js: 登录后必弹(同一次加载内关掉才不再弹),顶栏加常驻「🎁 加群领 500」按钮,DB.auth.onChange 联动
- server.mjs: html/js/css 改为 no-cache, must-revalidate(其余仍 24h),避免 WebView 拿旧 index.html 导致新脚本不加载
This commit is contained in:
gitea committed 2026-11-20 15:58:40 +08:00
1 parent 92f286880c
commit bc4e0e005e
3 files changed
+39 -9

No files matched your search

+1 -1
View File
@@ -128,7 +128,7 @@ async function serveStatic(req, res, pathname) {
}
res.writeHead(200, {
'content-type': MIME[extname(file).toLowerCase()] || 'application/octet-stream',
'cache-control': rel.endsWith('.html') ? 'no-cache' : 'public, max-age=3600',
'cache-control': /\.(html|js|css)$/.test(rel) ? 'no-cache, must-revalidate' : 'public, max-age=86400',
etag,
'x-content-type-options': 'nosniff'
})