權限與靜態檔控制改進:
- 修正 admin 目錄預設頁路由,避免 403.14 與不必要的延遲重導 - 停用未使用的 Sites 多站點初始化,減少應用程式啟動成本 - 修正 Response.Redirect 後未 return 的流程,避免 1.8 分鐘超時 - 將資料庫 Connection Timeout 降為 10 秒,加速失敗回應 - 將 runAllManagedModulesForAllRequests 設為 false,讓 JS/CSS 等靜態檔案直接由 IIS 回應
This commit is contained in:
@@ -43,11 +43,15 @@ public static class Sites
|
||||
public static double MaxAge = 3600 * 24 * 365;
|
||||
static Sites()
|
||||
{
|
||||
// 多站點功能暫時停用,未來有需要再啟用
|
||||
// 如需啟用,取消下方註解即可
|
||||
/*
|
||||
JObject o=get_jsonfile(@"sites\sites-config.json");
|
||||
sites = o["sites"].ToObject<List<Site>>();
|
||||
resource = o["resource"].ToObject<SiteResource>();
|
||||
//resource.Add(new KeyValuePair<string, string>("assets", "assets"));
|
||||
//resource.Add(new KeyValuePair<string, string>("config", "config"));
|
||||
*/
|
||||
}
|
||||
private static JObject get_jsonfile(string jsonfile)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user