refactor: ignore /api path cache
This commit is contained in:
@@ -33,8 +33,8 @@ registerRoute(
|
|||||||
return false;
|
return false;
|
||||||
} // If this is a URL that starts with /_, skip.
|
} // If this is a URL that starts with /_, skip.
|
||||||
const urlPath = url.pathname;
|
const urlPath = url.pathname;
|
||||||
// 忽略swagger文档 本地语言文件 挂件地址
|
// 忽略api开头的path 本地语言文件 挂件地址
|
||||||
if (urlPath.startsWith("/api/swagger") || urlPath.startsWith("/locales/") || urlPath.startsWith("/widget")) {
|
if (urlPath.startsWith("/api") || urlPath.startsWith("/locales/") || urlPath.startsWith("/widget")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (urlPath.startsWith("/_")) {
|
if (urlPath.startsWith("/_")) {
|
||||||
|
|||||||
Reference in New Issue
Block a user