mirror of
https://github.com/certd/certd.git
synced 2026-07-07 13:07:36 +08:00
perf: 头像增加缓存时间
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
export function shouldSetDefaultNoCache(path: string, cacheControl?: string) {
|
||||
if (cacheControl) {
|
||||
return false;
|
||||
}
|
||||
return path === '/' || path === '/index.html' || path.startsWith('/api');
|
||||
}
|
||||
Reference in New Issue
Block a user