mirror of
https://github.com/certd/certd.git
synced 2026-07-08 05:37:34 +08:00
chore: format
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
export function shouldSetDefaultNoCache(path: string, cacheControl?: string) {
|
||||
if(path === '/' || path === '/index.html' ){
|
||||
if (path === "/" || path === "/index.html") {
|
||||
//首页不管怎样都不要缓存
|
||||
return true;
|
||||
}
|
||||
@@ -7,5 +7,5 @@ export function shouldSetDefaultNoCache(path: string, cacheControl?: string) {
|
||||
return false;
|
||||
}
|
||||
// api也不要缓存,如果他本身有设置缓存除外
|
||||
return path.startsWith('/api');
|
||||
return path.startsWith("/api");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user