perf: 头像增加缓存时间

This commit is contained in:
xiaojunnuo
2026-05-15 00:39:35 +08:00
parent 3b72ca09c6
commit 7015b1b232
6 changed files with 66 additions and 7 deletions
@@ -0,0 +1,6 @@
export function shouldSetDefaultNoCache(path: string, cacheControl?: string) {
if (cacheControl) {
return false;
}
return path === '/' || path === '/index.html' || path.startsWith('/api');
}