權限與靜態檔控制改進:
- 修正 admin 目錄預設頁路由,避免 403.14 與不必要的延遲重導 - 停用未使用的 Sites 多站點初始化,減少應用程式啟動成本 - 修正 Response.Redirect 後未 return 的流程,避免 1.8 分鐘超時 - 將資料庫 Connection Timeout 降為 10 秒,加速失敗回應 - 將 runAllManagedModulesForAllRequests 設為 false,讓 JS/CSS 等靜態檔案直接由 IIS 回應
This commit is contained in:
@@ -13,7 +13,8 @@
|
||||
{
|
||||
// Code that runs on application startup
|
||||
// run static constructor
|
||||
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(typeof(Sites).TypeHandle);
|
||||
// Sites 多站點功能暫時停用,未來有需要再啟用
|
||||
//System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(typeof(Sites).TypeHandle);
|
||||
//註冊webapi
|
||||
GlobalConfiguration.Configure(WebApiConfig.Register);
|
||||
//GlobalConfiguration.Configuration.Services.Replace(
|
||||
|
||||
Reference in New Issue
Block a user