强化favicon缓存穿透避免浏览器顽固缓存
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled

This commit is contained in:
Your Name 2026-02-14 21:48:25 +08:00
parent f5898f0075
commit 7cab15b936

View File

@ -15,7 +15,7 @@ export async function generateMetadata(): Promise<Metadata> {
"updatedAt" in settings && settings.updatedAt
? new Date(settings.updatedAt).getTime()
: Date.now();
const faviconUrl = `/api/favicon?v=${updatedAt}`;
const faviconUrl = `/api/favicon?v=${updatedAt}-${Date.now()}`;
const metadataBase = process.env.AUTH_URL
? new URL(process.env.AUTH_URL)
: undefined;